]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makebase.b32
fixed spec files: no data files are installed under prefix/share/wx anymore
[wxWidgets.git] / src / msw / makebase.b32
1
2
3
4
5 # This file was automatically generated by tmake
6 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
7
8 #
9 # File: makebase.b32
10 # Author: Julian Smart
11 # Created: 1998
12 # Updated: Michael Fielding, 2002
13 # Copyright:
14 #
15 # "%W% %G%"
16 #
17 # Makefile : Builds wxWindows library wxbase.lib for MS Windows,
18 # and Borland C++ (32-bit).
19
20 # BCCDIR now defined in ../makeb32.env
21
22 !if "$(WXWIN)" == ""
23 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
24 !endif
25
26 WXDIR = $(WXWIN)
27 THISDIR = $(WXDIR)\src\msw
28
29 # Set all these to 1 if you want to build a dynamic library
30 !if "$(DLL)" == "1"
31 WXMAKINGDLL=1
32 WXBUILDDLL=1
33 !endif
34
35 wxUSE_GUI=0
36
37 !include $(WXDIR)\src\makeb32.env
38
39 PERIPH_LIBS=
40 PERIPH_TARGET=zlib regex $(PERIPH_TARGET)
41 PERIPH_CLEAN_TARGET=clean_zlib clean_regex $(PERIPH_CLEAN_TARGET)
42
43 !if "$(DLL)" == "0"
44 DUMMY=dummy
45 !else
46 DUMMY=dummydll
47 LIBS= cw32mti import32 ole2w32 odbc32 zlib regex
48 !endif
49
50 LIBTARGET=$(WXLIB)
51
52 GENDIR=..\generic
53 COMMDIR=..\common
54 HTMLDIR=..\html
55 OLEDIR=.\ole
56 MSWDIR=.
57
58 DOCDIR = $(WXDIR)\docs
59
60 COMMONOBJS = \
61 $(OBJ_PATH)\appbase.obj \
62 $(OBJ_PATH)\clntdata.obj \
63 $(OBJ_PATH)\cmdline.obj \
64 $(OBJ_PATH)\config.obj \
65 $(OBJ_PATH)\datetime.obj \
66 $(OBJ_PATH)\datstrm.obj \
67 $(OBJ_PATH)\db.obj \
68 $(OBJ_PATH)\dbtable.obj \
69 $(OBJ_PATH)\dircmn.obj \
70 $(OBJ_PATH)\dynarray.obj \
71 $(OBJ_PATH)\dynlib.obj \
72 $(OBJ_PATH)\dynload.obj \
73 $(OBJ_PATH)\encconv.obj \
74 $(OBJ_PATH)\event.obj \
75 $(OBJ_PATH)\extended.obj \
76 $(OBJ_PATH)\ffile.obj \
77 $(OBJ_PATH)\file.obj \
78 $(OBJ_PATH)\fileconf.obj \
79 $(OBJ_PATH)\filefn.obj \
80 $(OBJ_PATH)\filename.obj \
81 $(OBJ_PATH)\filesys.obj \
82 $(OBJ_PATH)\fmapbase.obj \
83 $(OBJ_PATH)\fs_inet.obj \
84 $(OBJ_PATH)\fs_mem.obj \
85 $(OBJ_PATH)\fs_zip.obj \
86 $(OBJ_PATH)\ftp.obj \
87 $(OBJ_PATH)\hash.obj \
88 $(OBJ_PATH)\hashmap.obj \
89 $(OBJ_PATH)\http.obj \
90 $(OBJ_PATH)\intl.obj \
91 $(OBJ_PATH)\ipcbase.obj \
92 $(OBJ_PATH)\list.obj \
93 $(OBJ_PATH)\log.obj \
94 $(OBJ_PATH)\longlong.obj \
95 $(OBJ_PATH)\memory.obj \
96 $(OBJ_PATH)\mimecmn.obj \
97 $(OBJ_PATH)\module.obj \
98 $(OBJ_PATH)\msgout.obj \
99 $(OBJ_PATH)\mstream.obj \
100 $(OBJ_PATH)\object.obj \
101 $(OBJ_PATH)\process.obj \
102 $(OBJ_PATH)\protocol.obj \
103 $(OBJ_PATH)\regex.obj \
104 $(OBJ_PATH)\sckaddr.obj \
105 $(OBJ_PATH)\sckfile.obj \
106 $(OBJ_PATH)\sckipc.obj \
107 $(OBJ_PATH)\sckstrm.obj \
108 $(OBJ_PATH)\socket.obj \
109 $(OBJ_PATH)\stopwatch.obj \
110 $(OBJ_PATH)\strconv.obj \
111 $(OBJ_PATH)\stream.obj \
112 $(OBJ_PATH)\string.obj \
113 $(OBJ_PATH)\sysopt.obj \
114 $(OBJ_PATH)\textbuf.obj \
115 $(OBJ_PATH)\textfile.obj \
116 $(OBJ_PATH)\tokenzr.obj \
117 $(OBJ_PATH)\txtstrm.obj \
118 $(OBJ_PATH)\unzip.obj \
119 $(OBJ_PATH)\url.obj \
120 $(OBJ_PATH)\utilscmn.obj \
121 $(OBJ_PATH)\variant.obj \
122 $(OBJ_PATH)\wfstream.obj \
123 $(OBJ_PATH)\wxchar.obj \
124 $(OBJ_PATH)\zipstrm.obj \
125 $(OBJ_PATH)\zstream.obj \
126 $(OBJ_PATH)\init.obj
127
128 MSWOBJS = $(OBJ_PATH)\basemsw.obj \
129 $(OBJ_PATH)\dde.obj \
130 $(OBJ_PATH)\dir.obj \
131 $(OBJ_PATH)\gsocket.obj \
132 $(OBJ_PATH)\gsockmsw.obj \
133 $(OBJ_PATH)\main.obj \
134 $(OBJ_PATH)\mimetype.obj \
135 $(OBJ_PATH)\mslu.obj \
136 $(OBJ_PATH)\regconf.obj \
137 $(OBJ_PATH)\registry.obj \
138 $(OBJ_PATH)\snglinst.obj \
139 $(OBJ_PATH)\thread.obj \
140 $(OBJ_PATH)\utils.obj \
141 $(OBJ_PATH)\utilsexc.obj \
142 $(OBJ_PATH)\volume.obj
143
144 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
145
146 default: wx
147
148 wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph makeoutdir $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
149
150 all: wx
151
152 makeoutdir:
153 -mkdir $(OBJ_PATH)
154
155 # Copy the in-CVS setup0.h to setup.h if necessary
156 makesetuph:
157 cd $(WXDIR)\include\wx\msw
158 if not exist setup.h copy setup0.h setup.h
159 cd $(WXDIR)\src\msw
160
161 # Copy include\wx\msw\setup.h to the architecture-specific location
162 makearchsetuph:
163 copy $(WXDIR)\include\wx\msw\setup.h $(ARCHSETUPH)
164 cd $(WXDIR)\src\msw
165
166 $(ARCHINCDIR)\wx:
167 -mkdir $(ARCHINCDIR)
168 -mkdir $(ARCHINCDIR)\wx
169 -erase $(CFG)
170
171 !if "$(DLL)" == "0"
172
173 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
174 -erase $(WXLIB)
175 tlib "$(WXLIB)" /P1024 @&&!
176 +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
177 !
178
179 !else
180
181 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
182 -erase $(WXLIB)
183 -erase $(WXDLL)
184 $(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
185 c0d32.obj $(OBJECTS)
186 $(WXLIBDIR)\$(WXLIBNAME)
187 nul
188 $(PERIPH_LIBS) $(LIBS)
189 wxb32
190 !
191 implib -c $(LIBTARGET) $(WXLIBDIR)\$(WXLIBNAME).dll
192 !endif
193
194 dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
195 dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res
196
197 version.res:
198 brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
199
200 $(OBJ_PATH)\basemsw.obj: $(MSWDIR)\basemsw.$(SRCSUFF)
201
202 $(OBJ_PATH)\dde.obj: $(MSWDIR)\dde.$(SRCSUFF)
203
204 $(OBJ_PATH)\dir.obj: $(MSWDIR)\dir.$(SRCSUFF)
205
206 $(OBJ_PATH)\gsocket.obj: $(MSWDIR)\gsocket.c
207
208 $(OBJ_PATH)\gsockmsw.obj: $(MSWDIR)\gsockmsw.c
209
210 $(OBJ_PATH)\main.obj: $(MSWDIR)\main.$(SRCSUFF)
211
212 $(OBJ_PATH)\mimetype.obj: $(MSWDIR)\mimetype.$(SRCSUFF)
213
214 $(OBJ_PATH)\mslu.obj: $(MSWDIR)\mslu.$(SRCSUFF)
215
216 $(OBJ_PATH)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF)
217
218 $(OBJ_PATH)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF)
219
220 $(OBJ_PATH)\snglinst.obj: $(MSWDIR)\snglinst.$(SRCSUFF)
221
222 $(OBJ_PATH)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF)
223
224 $(OBJ_PATH)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF)
225
226 $(OBJ_PATH)\utilsexc.obj: $(MSWDIR)\utilsexc.$(SRCSUFF)
227
228 $(OBJ_PATH)\volume.obj: $(MSWDIR)\volume.$(SRCSUFF)
229
230
231
232 ########################################################
233 # Common objects (always compiled)
234
235 $(OBJ_PATH)\appbase.obj: $(COMMDIR)\appbase.$(SRCSUFF)
236
237 $(OBJ_PATH)\clntdata.obj: $(COMMDIR)\clntdata.$(SRCSUFF)
238
239 $(OBJ_PATH)\cmdline.obj: $(COMMDIR)\cmdline.$(SRCSUFF)
240
241 $(OBJ_PATH)\config.obj: $(COMMDIR)\config.$(SRCSUFF)
242
243 $(OBJ_PATH)\datetime.obj: $(COMMDIR)\datetime.$(SRCSUFF)
244
245 $(OBJ_PATH)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF)
246
247 $(OBJ_PATH)\db.obj: $(COMMDIR)\db.$(SRCSUFF)
248
249 $(OBJ_PATH)\dbtable.obj: $(COMMDIR)\dbtable.$(SRCSUFF)
250
251 $(OBJ_PATH)\dircmn.obj: $(COMMDIR)\dircmn.$(SRCSUFF)
252
253 $(OBJ_PATH)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF)
254
255 $(OBJ_PATH)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF)
256
257 $(OBJ_PATH)\dynload.obj: $(COMMDIR)\dynload.$(SRCSUFF)
258
259 $(OBJ_PATH)\encconv.obj: $(COMMDIR)\encconv.$(SRCSUFF)
260
261 $(OBJ_PATH)\event.obj: $(COMMDIR)\event.$(SRCSUFF)
262
263 $(OBJ_PATH)\extended.obj: $(COMMDIR)\extended.c
264
265 $(OBJ_PATH)\ffile.obj: $(COMMDIR)\ffile.$(SRCSUFF)
266
267 $(OBJ_PATH)\file.obj: $(COMMDIR)\file.$(SRCSUFF)
268
269 $(OBJ_PATH)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF)
270
271 $(OBJ_PATH)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF)
272
273 $(OBJ_PATH)\filename.obj: $(COMMDIR)\filename.$(SRCSUFF)
274
275 $(OBJ_PATH)\filesys.obj: $(COMMDIR)\filesys.$(SRCSUFF)
276
277 $(OBJ_PATH)\fmapbase.obj: $(COMMDIR)\fmapbase.$(SRCSUFF)
278
279 $(OBJ_PATH)\fs_inet.obj: $(COMMDIR)\fs_inet.$(SRCSUFF)
280
281 $(OBJ_PATH)\fs_mem.obj: $(COMMDIR)\fs_mem.$(SRCSUFF)
282
283 $(OBJ_PATH)\fs_zip.obj: $(COMMDIR)\fs_zip.$(SRCSUFF)
284
285 $(OBJ_PATH)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF)
286
287 $(OBJ_PATH)\hash.obj: $(COMMDIR)\hash.$(SRCSUFF)
288
289 $(OBJ_PATH)\hashmap.obj: $(COMMDIR)\hashmap.$(SRCSUFF)
290
291 $(OBJ_PATH)\http.obj: $(COMMDIR)\http.$(SRCSUFF)
292
293 $(OBJ_PATH)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF)
294
295 $(OBJ_PATH)\ipcbase.obj: $(COMMDIR)\ipcbase.$(SRCSUFF)
296
297 $(OBJ_PATH)\list.obj: $(COMMDIR)\list.$(SRCSUFF)
298
299 $(OBJ_PATH)\log.obj: $(COMMDIR)\log.$(SRCSUFF)
300
301 $(OBJ_PATH)\longlong.obj: $(COMMDIR)\longlong.$(SRCSUFF)
302
303 $(OBJ_PATH)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)
304
305 $(OBJ_PATH)\mimecmn.obj: $(COMMDIR)\mimecmn.$(SRCSUFF)
306
307 $(OBJ_PATH)\module.obj: $(COMMDIR)\module.$(SRCSUFF)
308
309 $(OBJ_PATH)\msgout.obj: $(COMMDIR)\msgout.$(SRCSUFF)
310
311 $(OBJ_PATH)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF)
312
313 $(OBJ_PATH)\object.obj: $(COMMDIR)\object.$(SRCSUFF)
314
315 $(OBJ_PATH)\process.obj: $(COMMDIR)\process.$(SRCSUFF)
316
317 $(OBJ_PATH)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF)
318
319 $(OBJ_PATH)\regex.obj: $(COMMDIR)\regex.$(SRCSUFF)
320
321 $(OBJ_PATH)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF)
322
323 $(OBJ_PATH)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF)
324
325 $(OBJ_PATH)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF)
326
327 $(OBJ_PATH)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF)
328
329 $(OBJ_PATH)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF)
330
331 $(OBJ_PATH)\stopwatch.obj: $(COMMDIR)\stopwatch.$(SRCSUFF)
332
333 $(OBJ_PATH)\strconv.obj: $(COMMDIR)\strconv.$(SRCSUFF)
334
335 $(OBJ_PATH)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF)
336
337 $(OBJ_PATH)\string.obj: $(COMMDIR)\string.$(SRCSUFF)
338
339 $(OBJ_PATH)\sysopt.obj: $(COMMDIR)\sysopt.$(SRCSUFF)
340
341 $(OBJ_PATH)\textbuf.obj: $(COMMDIR)\textbuf.$(SRCSUFF)
342
343 $(OBJ_PATH)\textfile.obj: $(COMMDIR)\textfile.$(SRCSUFF)
344
345 $(OBJ_PATH)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF)
346
347 $(OBJ_PATH)\txtstrm.obj: $(COMMDIR)\txtstrm.$(SRCSUFF)
348
349 $(OBJ_PATH)\unzip.obj: $(COMMDIR)\unzip.c
350
351 $(OBJ_PATH)\url.obj: $(COMMDIR)\url.$(SRCSUFF)
352
353 $(OBJ_PATH)\utilscmn.obj: $(COMMDIR)\utilscmn.$(SRCSUFF)
354
355 $(OBJ_PATH)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF)
356
357 $(OBJ_PATH)\wfstream.obj: $(COMMDIR)\wfstream.$(SRCSUFF)
358
359 $(OBJ_PATH)\wxchar.obj: $(COMMDIR)\wxchar.$(SRCSUFF)
360
361 $(OBJ_PATH)\zipstrm.obj: $(COMMDIR)\zipstrm.$(SRCSUFF)
362
363 $(OBJ_PATH)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF)
364
365 $(OBJ_PATH)\init.obj: $(COMMDIR)\init.$(SRCSUFF)
366
367
368
369
370 all_utils:
371 cd $(WXDIR)\utils
372 ${MAKE} -f makefile.b32
373 cd $(WXDIR)\src\msw
374
375 all_samples:
376 cd $(WXDIR)\samples
377 ${MAKE} -f makefile.b32
378 cd $(WXDIR)\src\msw
379
380 all_execs:
381 cd $(WXDIR)\utils
382 ${MAKE} -f makefile.b32 all_execs
383 cd $(WXDIR)\src\msw
384
385
386
387 zlib: $(CFG)
388 cd $(WXDIR)\src\zlib
389 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
390 cd $(WXDIR)\src\msw
391
392 clean_zlib:
393 cd $(WXDIR)\src\zlib
394 ${MAKE} -f makefile.b32 clean
395 cd $(WXDIR)\src\msw
396
397
398 regex: $(CFG)
399 cd $(WXDIR)\src\regex
400 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
401 cd $(WXDIR)\src\msw
402
403 clean_regex:
404 cd $(WXDIR)\src\regex
405 ${MAKE} -f makefile.b32 clean
406 cd $(WXDIR)\src\msw
407
408
409
410 $(CFG): makebase.b32
411 copy &&!
412 -Hc
413 -H=$(WXDIR)\src\msw\wx32.csm
414 -3
415 -d
416 -a1 # byte alignment
417 -R-
418 -X
419 -w-par
420 -w-aus
421 -w-hid # virtual function A hides virtual function B
422 -tWM
423 -tWC
424
425 -I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff;$(THISDIR)
426 -I$(WXDIR)\include\wx\msw\gnuwin32
427
428 -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
429 -D__WXWIN__
430 -D__WXMSW__
431 -D__WINDOWS__
432 -DWIN32
433 $(OPT)
434 $(DEBUG_FLAGS)
435 $(WIN95FLAG)
436 ! $(CFG)
437
438 clean: $(PERIPH_CLEAN_TARGET)
439 -$(RM) $(WXLIBDIR)\*.tds
440 -$(RM) $(WXLIBDIR)\*.il?
441 -$(RM) $(OBJ_PATH)\*.obj
442 -$(RM) $(OBJ_PATH)\*.pch
443 -$(RM) $(OBJ_PATH)\*.csm
444 -$(RM) $(OBJ_PATH)\"wx32.#??"
445
446 cleancfg:
447 -$(RM) $(OBJ_PATH)\*.cfg
448
449
450 cleanall: clean cleancfg
451
452
453 self:
454 cd $(WXWIN)\distrib\msw\tmake
455 perl -S tmake -tb32base wxwin.pro -o makebase.b32
456 copy makebase.b32 $(WXWIN)\src\msw