]> git.saurik.com Git - wxWidgets.git/blame - utils/dialoged/src/makefile.dos
several fixes
[wxWidgets.git] / utils / dialoged / 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 docview 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\dialoged\src
19WXLIB = $(WXDIR)\lib\wx.lib
20
21DOCDIR = $(WXDIR)\utils\dialoged\docs
22
23PROPDIR = $(WXDIR)\utils\wxprop
24PROPINC = $(PROPDIR)\src
25PROPLIB = $(PROPDIR)\lib\wxprop.lib
26
27TREEDIR = $(WXDIR)\utils\wxtree
28TREEINC = $(TREEDIR)\src
29TREELIB = $(TREEDIR)\lib\wxtree.lib
30
31DIBDIR = $(WXDIR)\utils\dib
32DIBLIB = $(DIBDIR)\dib.lib
33DIBINC = $(DIBDIR)
34
35RCDIR = $(WXDIR)\utils\rcparser
36RCLIB = $(RCDIR)\lib\rcparser.lib
37RCINC = $(RCDIR)\src
38
39LIBS=$(WXLIB) $(PROPLIB) oldnames libw llibcew commdlg shell ddeml
40INC=/I$(WXDIR)\include\base /I$(WXDIR)\include\msw /I$(PROPINC)
41
42!ifndef FINAL
43FINAL=0
44!endif
45
46# Default is to output RTF for WinHelp
47!ifndef RTFSTYLE
48RTFSTYLE=-winhelp
49!endif
50
51# Set this to nothing if using MS C++ 7
52ZOPTION=/Z7
53
54!if "$(FINAL)" == "0"
55CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od /DDEBUG=$(DEBUG) /YuWX_PREC.H $(INC) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
56LINKFLAGS=/NOD /CO /SEG:512 /ONERROR:NOEXE
57!else
58CPPFLAGS=/AL /W3 /G2sw /Ox /YuWX_PREC.H $(INC) /DDEBUG=$(DEBUG) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
59LINKFLAGS=/NOD /SEG:512 /ONERROR:NOEXE
60!endif
61
62OBJECTS = dialoged.obj wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj
63
64all: prop dialoged.exe
65
66wx:
67 cd $(WXDIR)\src\msw
68 nmake -f makefile.dos
69 cd $(THISDIR)
70
71wxclean:
72 cd $(WXDIR)\src\msw
73 nmake -f makefile.dos clean
74 cd $(THISDIR)
75
76
77dialoged.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) $(PROPLIB) dialoged.def dialoged.res
78 link $(LINKFLAGS) @<<
79$(WXDIR)\src\msw\dummy.obj $(OBJECTS),
80dialoged,
81NUL,
82$(LIBS),
83dialoged.def
84;
85<<
86 rc -30 -K dialoged.res
87
88dialoged.obj: dialoged.h $(PROPINC)\wx_prop.h wx_resed.h wx_rprop.h dialoged.$(SRCSUFF)
89 cl @<<
90$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
91<<
92
93wx_resed.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_resed.$(SRCSUFF)
94 cl @<<
95$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
96<<
97
98wx_rdlg.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_rdlg.$(SRCSUFF)
99 cl @<<
100$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
101<<
102
103wx_reswr.obj: wx_resed.h wx_reswr.$(SRCSUFF)
104 cl @<<
105$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
106<<
107
108wx_rprop.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_rprop.$(SRCSUFF)
109 cl @<<
110$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
111<<
112
113wx_repal.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_repal.h wx_repal.$(SRCSUFF)
114 cl @<<
115$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
116<<
117
118dialoged.res : dialoged.rc $(WXDIR)\include\msw\wx.rc
119 rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw dialoged
120
121wxtree:
122 cd $(TREEDIR)\src
123 nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)"
124 cd $(THISDIR)
125
126dib:
127 cd $(DIBDIR)
128 nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)"
129 cd $(THISDIR)
130
131prop:
132 cd $(PROPDIR)\src
133 nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)"
134 cd $(THISDIR)
135
136# Making documents
137docs: hlp
138hlp: $(DOCDIR)/dialoged.hlp
139hlp32: $(DOCDIR)/hlp32/dialoged.hlp
140rtf: $(DOCDIR)/dialoged.rtf
141
142$(DOCDIR)/dialoged.hlp: $(DOCDIR)/dialoged.rtf $(DOCDIR)/dialoged.hpj
143 cd $(DOCDIR)
144 -erase dialoged.ph
145 hc dialoged
146 cd $(THISDIR)
147
148$(DOCDIR)/hlp32/dialoged.hlp: $(DOCDIR)/hlp32/dialoged.rtf $(DOCDIR)/hlp32/dialoged.hpj
149 cd $(DOCDIR)/hlp32
150 -erase dialoged.ph
151 -wx /W hcw /c /e clockwrk.hpj
152 cd $(THISDIR)
153
154$(DOCDIR)/dialoged.rtf: $(DOCDIR)/body.tex $(DOCDIR)/classes.tex $(DOCDIR)/tech.tex $(DOCDIR)/dialoged.tex
155 cd $(DOCDIR)
156 -wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/dialoged.rtf -twice $(RTFSTYLE)
157 cd $(THISDIR)
158
159$(DOCDIR)/hlp32/dialoged.rtf: $(DOCDIR)/body.tex $(DOCDIR)/classes.tex $(DOCDIR)/body.tex $(DOCDIR)/dialoged.tex
160 cd $(DOCDIR)
161 -wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/hlp32/dialoged.rtf -twice $(RTFSTYLE) -macros $(DOCDIR)/t2rtf32.ini
162 cd $(THISDIR)
163
164wordrtf:
165 cd $(DOCDIR)
166 -wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/dialoged.rtf -twice -rtf
167 cd $(THISDIR)
168
169cleanprop:
170 cd $(PROPDIR)\src
171 nmake -f makefile.dos clean
172 cd $(THISDIR)
173
174rcparser:
175 cd $(RCDIR)\src
176 nmake -f makefile.dos FINAL=$(FINAL) OPT=$(OPT)
177 cd $(THISDIR)
178
179cleanrtf:
180 cd $(DOCDIR)
181 -erase *.rtf
182 cd $(THISDIR)
183
184cleanutils: cleanprop
185 -erase *.obj
186 -erase *.sbr
187 -erase *.exe
188 -erase *.res
189 -erase *.map
190 -erase *.pdb
191
192clean:
193 -erase *.obj *.exe *.res *.map *.rws