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