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