5 # This file was automatically generated by tmake
6 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
10 # Author: Julian Smart
12 # Updated: Michael Fielding, 2002
17 # Makefile : Builds wxWindows library wxbase.lib for MS Windows,
18 # and Borland C++ (32-bit).
20 # BCCDIR now defined in ../makeb32.env
23 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
27 THISDIR = $(WXDIR)\src\msw
29 # Set all these to 1 if you want to build a dynamic library
37 !include $(WXDIR)\src\makeb32.env
40 PERIPH_TARGET=zlib png jpeg tiff regex $(PERIPH_TARGET)
41 PERIPH_CLEAN_TARGET=clean_zlib clean_png clean_jpeg clean_tiff clean_regex $(PERIPH_CLEAN_TARGET)
47 LIBS= cw32mti import32 ole2w32 odbc32 zlib winpng jpeg tiff regex
58 DOCDIR = $(WXDIR)\docs
62 $(MSWDIR)\appcmn.obj \
63 $(MSWDIR)\clntdata.obj \
64 $(MSWDIR)\cmdline.obj \
65 $(MSWDIR)\config.obj \
66 $(MSWDIR)\datetime.obj \
67 $(MSWDIR)\datstrm.obj \
69 $(MSWDIR)\dbtable.obj \
70 $(MSWDIR)\dircmn.obj \
71 $(MSWDIR)\dynarray.obj \
72 $(MSWDIR)\dynlib.obj \
73 $(MSWDIR)\dynload.obj \
74 $(MSWDIR)\encconv.obj \
76 $(MSWDIR)\extended.obj \
79 $(MSWDIR)\fileconf.obj \
80 $(MSWDIR)\filefn.obj \
81 $(MSWDIR)\filename.obj \
82 $(MSWDIR)\filesys.obj \
83 $(MSWDIR)\fontmap.obj \
84 $(MSWDIR)\fs_inet.obj \
85 $(MSWDIR)\fs_mem.obj \
86 $(MSWDIR)\fs_zip.obj \
89 $(MSWDIR)\hashmap.obj \
92 $(MSWDIR)\ipcbase.obj \
95 $(MSWDIR)\longlong.obj \
96 $(MSWDIR)\memory.obj \
97 $(MSWDIR)\mimecmn.obj \
98 $(MSWDIR)\module.obj \
99 $(MSWDIR)\msgout.obj \
100 $(MSWDIR)\mstream.obj \
101 $(MSWDIR)\object.obj \
102 $(MSWDIR)\process.obj \
103 $(MSWDIR)\protocol.obj \
104 $(MSWDIR)\regex.obj \
105 $(MSWDIR)\sckaddr.obj \
106 $(MSWDIR)\sckfile.obj \
107 $(MSWDIR)\sckipc.obj \
108 $(MSWDIR)\sckstrm.obj \
109 $(MSWDIR)\socket.obj \
110 $(MSWDIR)\strconv.obj \
111 $(MSWDIR)\stream.obj \
112 $(MSWDIR)\string.obj \
113 $(MSWDIR)\sysopt.obj \
114 $(MSWDIR)\textbuf.obj \
115 $(MSWDIR)\textfile.obj \
116 $(MSWDIR)\timercmn.obj \
117 $(MSWDIR)\tokenzr.obj \
118 $(MSWDIR)\txtstrm.obj \
119 $(MSWDIR)\unzip.obj \
121 $(MSWDIR)\utilscmn.obj \
122 $(MSWDIR)\variant.obj \
123 $(MSWDIR)\wfstream.obj \
124 $(MSWDIR)\wxchar.obj \
125 $(MSWDIR)\zipstrm.obj \
126 $(MSWDIR)\zstream.obj \
129 MSWOBJS = $(MSWDIR)\dde.obj \
131 $(MSWDIR)\gsocket.obj \
132 $(MSWDIR)\gsockmsw.obj \
134 $(MSWDIR)\mimetype.obj \
135 $(MSWDIR)\regconf.obj \
136 $(MSWDIR)\registry.obj \
137 $(MSWDIR)\snglinst.obj \
138 $(MSWDIR)\thread.obj \
139 $(MSWDIR)\utils.obj \
140 $(MSWDIR)\utilsexc.obj \
143 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
147 wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
151 # Copy the in-CVS setup0.h to setup.h if necessary
153 cd $(WXDIR)\include\wx\msw
154 if not exist setup.h copy setup0.h setup.h
157 # Copy include\wx\msw\setup.h to the architecture-specific location
159 copy $(WXDIR)\include\wx\msw\setup.h $(ARCHSETUPH)
164 -mkdir $(ARCHINCDIR)\wx
169 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
171 tlib "$(WXLIB)" /P1024 @&&!
172 +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
177 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
180 $(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
182 $(WXLIBDIR)\$(WXLIBNAME)
184 $(PERIPH_LIBS) $(LIBS)
187 implib -c $(LIBTARGET) $(WXLIBDIR)\$(WXLIBNAME).dll
190 dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
191 dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res
194 brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
196 $(MSWDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
199 # $(CPPFLAGS2) /c $*.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
202 $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
203 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
205 $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
206 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
209 $(MSWDIR)\dde.obj: $(MSWDIR)\dde.$(SRCSUFF)
211 $(MSWDIR)\dir.obj: $(MSWDIR)\dir.$(SRCSUFF)
213 $(MSWDIR)\gsocket.obj: $(MSWDIR)\gsocket.c
215 $(MSWDIR)\gsockmsw.obj: $(MSWDIR)\gsockmsw.c
217 $(MSWDIR)\main.obj: $(MSWDIR)\main.$(SRCSUFF)
219 $(MSWDIR)\mimetype.obj: $(MSWDIR)\mimetype.$(SRCSUFF)
221 $(MSWDIR)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF)
223 $(MSWDIR)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF)
225 $(MSWDIR)\snglinst.obj: $(MSWDIR)\snglinst.$(SRCSUFF)
227 $(MSWDIR)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF)
229 $(MSWDIR)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF)
231 $(MSWDIR)\utilsexc.obj: $(MSWDIR)\utilsexc.$(SRCSUFF)
233 $(MSWDIR)\volume.obj: $(MSWDIR)\volume.$(SRCSUFF)
237 ########################################################
238 # Common objects (always compiled)
240 $(MSWDIR)\appcmn.obj: $(COMMDIR)\appcmn.$(SRCSUFF)
242 $(MSWDIR)\clntdata.obj: $(COMMDIR)\clntdata.$(SRCSUFF)
244 $(MSWDIR)\cmdline.obj: $(COMMDIR)\cmdline.$(SRCSUFF)
246 $(MSWDIR)\config.obj: $(COMMDIR)\config.$(SRCSUFF)
248 $(MSWDIR)\datetime.obj: $(COMMDIR)\datetime.$(SRCSUFF)
250 $(MSWDIR)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF)
252 $(MSWDIR)\db.obj: $(COMMDIR)\db.$(SRCSUFF)
254 $(MSWDIR)\dbtable.obj: $(COMMDIR)\dbtable.$(SRCSUFF)
256 $(MSWDIR)\dircmn.obj: $(COMMDIR)\dircmn.$(SRCSUFF)
258 $(MSWDIR)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF)
260 $(MSWDIR)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF)
262 $(MSWDIR)\dynload.obj: $(COMMDIR)\dynload.$(SRCSUFF)
264 $(MSWDIR)\encconv.obj: $(COMMDIR)\encconv.$(SRCSUFF)
266 $(MSWDIR)\event.obj: $(COMMDIR)\event.$(SRCSUFF)
268 $(MSWDIR)\extended.obj: $(COMMDIR)\extended.c
270 $(MSWDIR)\ffile.obj: $(COMMDIR)\ffile.$(SRCSUFF)
272 $(MSWDIR)\file.obj: $(COMMDIR)\file.$(SRCSUFF)
274 $(MSWDIR)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF)
276 $(MSWDIR)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF)
278 $(MSWDIR)\filename.obj: $(COMMDIR)\filename.$(SRCSUFF)
280 $(MSWDIR)\filesys.obj: $(COMMDIR)\filesys.$(SRCSUFF)
282 $(MSWDIR)\fontmap.obj: $(COMMDIR)\fontmap.$(SRCSUFF)
284 $(MSWDIR)\fs_inet.obj: $(COMMDIR)\fs_inet.$(SRCSUFF)
286 $(MSWDIR)\fs_mem.obj: $(COMMDIR)\fs_mem.$(SRCSUFF)
288 $(MSWDIR)\fs_zip.obj: $(COMMDIR)\fs_zip.$(SRCSUFF)
290 $(MSWDIR)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF)
292 $(MSWDIR)\hash.obj: $(COMMDIR)\hash.$(SRCSUFF)
294 $(MSWDIR)\hashmap.obj: $(COMMDIR)\hashmap.$(SRCSUFF)
296 $(MSWDIR)\http.obj: $(COMMDIR)\http.$(SRCSUFF)
298 $(MSWDIR)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF)
300 $(MSWDIR)\ipcbase.obj: $(COMMDIR)\ipcbase.$(SRCSUFF)
302 $(MSWDIR)\list.obj: $(COMMDIR)\list.$(SRCSUFF)
304 $(MSWDIR)\log.obj: $(COMMDIR)\log.$(SRCSUFF)
306 $(MSWDIR)\longlong.obj: $(COMMDIR)\longlong.$(SRCSUFF)
308 $(MSWDIR)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)
310 $(MSWDIR)\mimecmn.obj: $(COMMDIR)\mimecmn.$(SRCSUFF)
312 $(MSWDIR)\module.obj: $(COMMDIR)\module.$(SRCSUFF)
314 $(MSWDIR)\msgout.obj: $(COMMDIR)\msgout.$(SRCSUFF)
316 $(MSWDIR)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF)
318 $(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF)
320 $(MSWDIR)\process.obj: $(COMMDIR)\process.$(SRCSUFF)
322 $(MSWDIR)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF)
324 $(MSWDIR)\regex.obj: $(COMMDIR)\regex.$(SRCSUFF)
326 $(MSWDIR)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF)
328 $(MSWDIR)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF)
330 $(MSWDIR)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF)
332 $(MSWDIR)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF)
334 $(MSWDIR)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF)
336 $(MSWDIR)\strconv.obj: $(COMMDIR)\strconv.$(SRCSUFF)
338 $(MSWDIR)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF)
340 $(MSWDIR)\string.obj: $(COMMDIR)\string.$(SRCSUFF)
342 $(MSWDIR)\sysopt.obj: $(COMMDIR)\sysopt.$(SRCSUFF)
344 $(MSWDIR)\textbuf.obj: $(COMMDIR)\textbuf.$(SRCSUFF)
346 $(MSWDIR)\textfile.obj: $(COMMDIR)\textfile.$(SRCSUFF)
348 $(MSWDIR)\timercmn.obj: $(COMMDIR)\timercmn.$(SRCSUFF)
350 $(MSWDIR)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF)
352 $(MSWDIR)\txtstrm.obj: $(COMMDIR)\txtstrm.$(SRCSUFF)
354 $(MSWDIR)\unzip.obj: $(COMMDIR)\unzip.c
356 $(MSWDIR)\url.obj: $(COMMDIR)\url.$(SRCSUFF)
358 $(MSWDIR)\utilscmn.obj: $(COMMDIR)\utilscmn.$(SRCSUFF)
360 $(MSWDIR)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF)
362 $(MSWDIR)\wfstream.obj: $(COMMDIR)\wfstream.$(SRCSUFF)
364 $(MSWDIR)\wxchar.obj: $(COMMDIR)\wxchar.$(SRCSUFF)
366 $(MSWDIR)\zipstrm.obj: $(COMMDIR)\zipstrm.$(SRCSUFF)
368 $(MSWDIR)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF)
370 $(MSWDIR)\init.obj: $(COMMDIR)\init.$(SRCSUFF)
377 ${MAKE} -f makefile.b32
382 ${MAKE} -f makefile.b32
387 ${MAKE} -f makefile.b32 all_execs
392 ${MAKE} -f makefile.b32 wxUSE_GUI=0
397 ${MAKE} -f makefile.b32 clean
402 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
407 ${MAKE} -f makefile.b32 clean
412 ${MAKE} -f makefile.b32 wxUSE_GUI=0
417 ${MAKE} -f makefile.b32 clean
421 cd $(WXDIR)\src\regex
422 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
426 cd $(WXDIR)\src\regex
427 ${MAKE} -f makefile.b32 clean
432 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
437 ${MAKE} -f makefile.b32 clean
443 -H=$(WXDIR)\src\msw\wx32.csm
451 -w-hid # virtual function A hides virtual function B
455 -I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff;$(THISDIR)
456 -I$(WXDIR)\include\wx\msw\gnuwin32
458 -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
468 clean: $(PERIPH_CLEAN_TARGET)
469 -erase $(WXLIBDIR)\wx.tds
470 -erase $(WXLIBDIR)\wx.il?
475 -erase ..\common\y_tab.c
476 -erase ..\common\lex_yy.c
481 cd $(WXWIN)\distrib\msw\tmake
482 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
483 copy makefile.$(MFTYPE) $(WXWIN)\src\msw