]> git.saurik.com Git - wxWidgets.git/blame - utils/wxprop/src/makefile.dos
Added test for sprintf and vsnprintf to fix string.cpp for non-GNU systems.
[wxWidgets.git] / utils / wxprop / src / makefile.dos
CommitLineData
457814b5
JS
1#
2# File: makefile.dos
3# Author: Julian Smart
4# Created: 1995
5# Updated:
6# Copyright: (c) 1995, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds wxPropertySheet library and example (DOS).
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
13
14WXDIR = $(WXWIN)
15
16!include $(WXDIR)\src\makemsc.env
17
18THISDIR = $(WXDIR)\utils\wxprop\src
19WXLIB = $(WXDIR)\lib\wx.lib
20
21PROPLIB = $(WXDIR)\utils\wxprop\lib\wxprop.lib
22DOCDIR = $(WXDIR)\utils\wxprop\docs
23
24LIBS=$(WXLIB) $(PROPLIB) oldnames libw llibcew commdlg shell ddeml
25INC=/I$(WXDIR)\include\base /I$(WXDIR)\include\msw
26
27# Default is to output RTF for WinHelp
28!ifndef RTFSTYLE
29RTFSTYLE=-winhelp
30!endif
31
32OBJECTS = prop.obj proplist.obj propform.obj
33TESTOBJECTS = test.obj
34
35all: $(PROPLIB)
36
37test: test.exe
38
39wx:
40 cd $(WXDIR)\src\msw
41 nmake -f makefile.dos
42 cd $(THISDIR)
43
44wxclean:
45 cd $(WXDIR)\src\msw
46 nmake -f makefile.dos clean
47 cd $(THISDIR)
48
49$(PROPLIB): $(OBJECTS)
50 -erase $(PROPLIB)
51 lib /PAGESIZE:128 @<<
52$(PROPLIB)
53y
54$(OBJECTS)
55nul
56;
57<<
58
59test.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(PROPLIB) $(TESTOBJECTS) test.def test.res
60 link $(LINKFLAGS) @<<
61$(WXDIR)\src\msw\dummy.obj $(TESTOBJECTS),
62test,
63NUL,
64$(LIBS),
65test.def
66;
67<<
68 rc -30 -K test.res
69
70test.obj: test.h wx_prop.h test.$(SRCSUFF)
71 cl @<<
72$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
73<<
74
75prop.obj: prop.h prop.$(SRCSUFF)
76 cl @<<
77$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
78<<
79
80proplist.obj: prop.h proplist.h proplist.$(SRCSUFF)
81 cl @<<
82$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
83<<
84
85propform.obj: prop.h propform.h propform.$(SRCSUFF)
86 cl @<<
87$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
88<<
89
90test.res : test.rc $(WXDIR)\include\wx\msw\wx.rc
91 rc -r /i$(WXDIR)\include\wx test
92
93# Making documents
94docs: hlp
95hlp: $(DOCDIR)/prop.hlp
96hlp32: $(DOCDIR)/hlp32/prop.hlp
97rtf: $(DOCDIR)/prop.rtf
98
99$(DOCDIR)/prop.hlp: $(DOCDIR)/prop.rtf $(DOCDIR)/prop.hpj
100 cd $(DOCDIR)
101 -erase prop.ph
102 hc prop
103 cd $(THISDIR)
104
105$(DOCDIR)/hlp32/prop.hlp: $(DOCDIR)/hlp32/prop.rtf $(DOCDIR)/hlp32/prop.hpj
106 cd $(DOCDIR)/hlp32
107 -erase prop.ph
108 start /w hcw /c /e clockwrk.hpj
109 cd $(THISDIR)
110
111$(DOCDIR)/prop.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/body.tex $(DOCDIR)/prop.tex
112 cd $(DOCDIR)
113 -wx /W tex2rtf $(DOCDIR)/prop.tex $(DOCDIR)/prop.rtf -twice $(RTFSTYLE)
114 cd $(THISDIR)
115
116$(DOCDIR)/hlp32/prop.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/body.tex $(DOCDIR)/prop.tex
117 cd $(DOCDIR)
118 -wx /W tex2rtf $(DOCDIR)/prop.tex $(DOCDIR)/hlp32/prop.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
119 cd $(THISDIR)
120
121wordrtf:
122 cd $(DOCDIR)
123 -wx /W tex2rtf $(DOCDIR)/prop.tex $(DOCDIR)/prop.rtf -twice -rtf
124 cd $(THISDIR)
125
126cleanrtf:
127 cd $(DOCDIR)
128 -erase *.rtf
129 cd $(THISDIR)
130
131clean:
132 -erase *.obj
133 -erase *.sbr
134 -erase *.exe
135 -erase *.res
136 -erase *.map
137 -erase *.pdb
138 -erase $(PROPLIB)