]>
Commit | Line | Data |
---|---|---|
0cbff120 | 1 | # This file was automatically generated by tmake at 10:32, 2001/07/11 |
16ce3c2f GT |
2 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE BASEVC.T! |
3 | ||
4 | # File: makebase.vc | |
5 | # Author: Mark Johnson | |
6 | # Created: 12 March 2001 | |
7 | # Updated: | |
8 | # Copyright: (c) 1997, Julian Smart | |
9 | # | |
10 | # "%W% %G%" | |
11 | # | |
12 | # Makefile : Builds wxWindows library wxBase(d).lib for VC++ (32-bit) | |
13 | # Arguments: | |
14 | # | |
15 | # FINAL=1 argument to nmake to build version with no debugging info. | |
16 | # | |
17 | # wxUSE_GUI=0 argument to build wxWindows version with no GUI (Console) | |
18 | # - makevc.env changes lib name to wxBase(d).lib | |
19 | # | |
20 | wxUSE_GUI = 0 | |
21 | !include <../makevc.env> | |
22 | ||
23 | THISDIR=$(WXWIN)\src\msw | |
24 | ||
25 | LIBTARGET=$(WXLIB) | |
26 | DUMMYOBJ=$D/dummy.obj | |
27 | ||
28 | # This one overrides the others, to be consistent with the settings in setup.h | |
29 | MINIMAL_WXWINDOWS_SETUP=0 | |
30 | ||
31 | PERIPH_LIBS= | |
32 | PERIPH_TARGET= | |
33 | PERIPH_CLEAN_TARGET= | |
34 | ||
35 | # These are absolute paths, so that the compiler | |
36 | # generates correct __FILE__ symbols for debugging. | |
37 | # Otherwise you don't be able to double-click on a memory | |
38 | # error to load that file. | |
39 | COMMDIR=$(WXDIR)\src\common | |
40 | MSWDIR=$(WXDIR)\src\msw | |
41 | ||
42 | {../common}.cpp{../common/$D}.obj: | |
43 | cl @<< | |
44 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
45 | << | |
46 | ||
47 | {../common}.c{../common/$D}.obj: | |
48 | cl @<< | |
49 | $(CPPFLAGS2) /Fo$@ /c /Tc $< | |
50 | << | |
51 | ||
52 | {../msw}.cpp{../msw/$D}.obj: | |
53 | cl @<< | |
54 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
55 | << | |
56 | ||
57 | {../msw}.c{../msw/$D}.obj: | |
58 | cl @<< | |
59 | $(CPPFLAGS2) /Fo$@ /c /Tc $< | |
60 | << | |
61 | ||
62 | COMMONOBJS = \ | |
63 | ..\common\$D\y_tab.obj \ | |
64 | ..\common\$D\appcmn.obj \ | |
65 | ..\common\$D\cmdline.obj \ | |
66 | ..\common\$D\config.obj \ | |
67 | ..\common\$D\datetime.obj \ | |
68 | ..\common\$D\datstrm.obj \ | |
69 | ..\common\$D\db.obj \ | |
70 | ..\common\$D\dbtable.obj \ | |
0cbff120 | 71 | ..\common\$D\dircmn.obj \ |
16ce3c2f GT |
72 | ..\common\$D\dynarray.obj \ |
73 | ..\common\$D\dynlib.obj \ | |
74 | ..\common\$D\encconv.obj \ | |
75 | ..\common\$D\event.obj \ | |
76 | ..\common\$D\extended.obj \ | |
77 | ..\common\$D\ffile.obj \ | |
78 | ..\common\$D\file.obj \ | |
79 | ..\common\$D\fileconf.obj \ | |
80 | ..\common\$D\filefn.obj \ | |
81 | ..\common\$D\filename.obj \ | |
82 | ..\common\$D\filesys.obj \ | |
83 | ..\common\$D\fontmap.obj \ | |
84 | ..\common\$D\fs_inet.obj \ | |
85 | ..\common\$D\fs_mem.obj \ | |
86 | ..\common\$D\fs_zip.obj \ | |
87 | ..\common\$D\ftp.obj \ | |
88 | ..\common\$D\hash.obj \ | |
89 | ..\common\$D\http.obj \ | |
90 | ..\common\$D\intl.obj \ | |
91 | ..\common\$D\ipcbase.obj \ | |
92 | ..\common\$D\list.obj \ | |
93 | ..\common\$D\log.obj \ | |
94 | ..\common\$D\longlong.obj \ | |
95 | ..\common\$D\memory.obj \ | |
96 | ..\common\$D\mimecmn.obj \ | |
97 | ..\common\$D\module.obj \ | |
98 | ..\common\$D\mstream.obj \ | |
99 | ..\common\$D\object.obj \ | |
100 | ..\common\$D\objstrm.obj \ | |
101 | ..\common\$D\process.obj \ | |
102 | ..\common\$D\protocol.obj \ | |
103 | ..\common\$D\sckaddr.obj \ | |
104 | ..\common\$D\sckfile.obj \ | |
105 | ..\common\$D\sckipc.obj \ | |
106 | ..\common\$D\sckstrm.obj \ | |
107 | ..\common\$D\serbase.obj \ | |
108 | ..\common\$D\socket.obj \ | |
109 | ..\common\$D\strconv.obj \ | |
110 | ..\common\$D\stream.obj \ | |
111 | ..\common\$D\string.obj \ | |
0cbff120 | 112 | ..\common\$D\sysopt.obj \ |
16ce3c2f GT |
113 | ..\common\$D\textfile.obj \ |
114 | ..\common\$D\timercmn.obj \ | |
115 | ..\common\$D\tokenzr.obj \ | |
116 | ..\common\$D\txtstrm.obj \ | |
117 | ..\common\$D\unzip.obj \ | |
118 | ..\common\$D\url.obj \ | |
119 | ..\common\$D\utilscmn.obj \ | |
120 | ..\common\$D\variant.obj \ | |
121 | ..\common\$D\wfstream.obj \ | |
122 | ..\common\$D\wxchar.obj \ | |
123 | ..\common\$D\zipstrm.obj \ | |
124 | ..\common\$D\zstream.obj \ | |
125 | ..\common\$D\init.obj | |
126 | ||
127 | MSWOBJS = ..\msw\$D\dde.obj \ | |
128 | ..\msw\$D\dir.obj \ | |
129 | ..\msw\$D\gsocket.obj \ | |
130 | ..\msw\$D\gsockmsw.obj \ | |
131 | ..\msw\$D\main.obj \ | |
132 | ..\msw\$D\mimetype.obj \ | |
133 | ..\msw\$D\regconf.obj \ | |
134 | ..\msw\$D\registry.obj \ | |
0cbff120 | 135 | ..\msw\$D\snglinst.obj \ |
16ce3c2f GT |
136 | ..\msw\$D\thread.obj \ |
137 | ..\msw\$D\utils.obj \ | |
138 | ..\msw\$D\utilsexc.obj | |
139 | ||
140 | OBJECTS = $(COMMONOBJS) $(MSWOBJS) | |
141 | ||
142 | # Normal, static library | |
143 | #all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET) | |
144 | all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET) | |
145 | ||
146 | setuph: | |
147 | cd $(WXDIR)\include\wx\msw | |
148 | if not exist setup.h copy setup0.h setup.h | |
149 | cd $(WXDIR)\src\msw | |
150 | ||
151 | dirs: $(MSWDIR)\$D $(COMMDIR)\$D | |
152 | ||
153 | $D: | |
154 | mkdir $D | |
155 | ||
156 | $(COMMDIR)\$D: | |
157 | mkdir $(COMMDIR)\$D | |
158 | ||
159 | $(MSWDIR)\$D: | |
160 | mkdir $(MSWDIR)\$D | |
161 | ||
162 | ### Static library | |
163 | ||
164 | $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) | |
165 | -erase $(LIBTARGET) | |
166 | $(implib) @<< | |
167 | -out:$@ | |
168 | -machine:$(CPU) | |
169 | $(OBJECTS) $D\dummy.obj $(PERIPH_LIBS) | |
170 | << | |
171 | ||
172 | $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h | |
173 | cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp | |
174 | ######################################################## | |
175 | ||
176 | ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c | |
177 | cl @<< | |
178 | $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ | |
179 | << | |
180 | ||
181 | ..\common\y_tab.c: ..\common\dosyacc.c | |
182 | copy "..\common"\dosyacc.c "..\common"\y_tab.c | |
183 | ||
184 | ..\common\lex_yy.c: ..\common\doslex.c | |
185 | copy "..\common"\doslex.c "..\common"\lex_yy.c | |
186 | ||
187 | $(OBJECTS): $(WXDIR)/include/wx/setup.h | |
188 | ||
189 | ..\common\$D\unzip.obj: ..\common\unzip.c | |
190 | cl @<< | |
191 | $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@ | |
192 | << | |
193 | ||
194 | png: | |
195 | cd $(WXDIR)\src\png | |
196 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) | |
197 | cd $(WXDIR)\src\msw | |
198 | ||
199 | clean_png: | |
200 | cd $(WXDIR)\src\png | |
201 | nmake -f makefile.vc clean | |
202 | cd $(WXDIR)\src\msw | |
203 | ||
204 | zlib: | |
205 | cd $(WXDIR)\src\zlib | |
206 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) | |
207 | cd $(WXDIR)\src\msw | |
208 | ||
209 | clean_zlib: | |
210 | cd $(WXDIR)\src\zlib | |
211 | nmake -f makefile.vc clean | |
212 | cd $(WXDIR)\src\msw | |
213 | ||
214 | jpeg: | |
215 | cd $(WXDIR)\src\jpeg | |
216 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all | |
217 | cd $(WXDIR)\src\msw | |
218 | ||
219 | clean_jpeg: | |
220 | cd $(WXDIR)\src\jpeg | |
221 | nmake -f makefile.vc clean | |
222 | cd $(WXDIR)\src\msw | |
223 | ||
224 | tiff: | |
225 | cd $(WXDIR)\src\tiff | |
226 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all | |
227 | cd $(WXDIR)\src\msw | |
228 | ||
229 | clean_tiff: | |
230 | cd $(WXDIR)\src\tiff | |
231 | nmake -f makefile.vc clean | |
232 | cd $(WXDIR)\src\msw | |
233 | ||
234 | xpm: | |
235 | cd $(WXDIR)\src\xpm | |
236 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) | |
237 | cd $(WXDIR)\src\msw | |
238 | ||
239 | clean_xpm: | |
240 | cd $(WXDIR)\src\xpm | |
241 | nmake -f makefile.vc clean | |
242 | cd $(WXDIR)\src\msw | |
243 | ||
244 | cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff | |
245 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib | |
246 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp | |
247 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb | |
248 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk | |
249 | ||
250 | ||
251 | clean: $(PERIPH_CLEAN_TARGET) | |
252 | -erase $(LIBTARGET) | |
253 | -erase $(COMMDIR)\$D\*.obj | |
254 | -erase $(COMMDIR)\$D\*.pdb | |
255 | -erase $(COMMDIR)\$D\*.sbr | |
256 | -erase $(COMMDIR)\$D\*.idb | |
257 | -erase $(COMMDIR)\$D\*.pch | |
258 | -erase $(COMMDIR)\y_tab.c | |
259 | -erase $(COMMDIR)\lex_yy.c | |
260 | -erase $(MSWDIR)\$D\*.idb | |
261 | -erase $(MSWDIR)\$D\*.pdb | |
262 | -erase $(MSWDIR)\$D\*.pch | |
263 | -erase $(MSWDIR)\$D\*.obj | |
264 | -erase $(MSWDIR)\$D\*.sbr | |
265 | -erase $(MSWDIR)\$D\*.pdb | |
266 | -rmdir $(D) | |
267 | -rmdir ..\common\$(D) | |
268 |