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 regex $(PERIPH_TARGET)
41 PERIPH_CLEAN_TARGET=clean_zlib clean_regex $(PERIPH_CLEAN_TARGET)
47 LIBS= cw32mti import32 ole2w32 odbc32 zlib winpng jpeg tiff regex
58 DOCDIR = $(WXDIR)\docs
61 $(MSWDIR)\appcmn.obj \
62 $(MSWDIR)\clntdata.obj \
63 $(MSWDIR)\cmdline.obj \
64 $(MSWDIR)\config.obj \
65 $(MSWDIR)\datacmn.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)\dde.obj: $(MSWDIR)\dde.$(SRCSUFF)
198 $(MSWDIR)\dir.obj: $(MSWDIR)\dir.$(SRCSUFF)
200 $(MSWDIR)\gsocket.obj: $(MSWDIR)\gsocket.c
202 $(MSWDIR)\gsockmsw.obj: $(MSWDIR)\gsockmsw.c
204 $(MSWDIR)\main.obj: $(MSWDIR)\main.$(SRCSUFF)
206 $(MSWDIR)\mimetype.obj: $(MSWDIR)\mimetype.$(SRCSUFF)
208 $(MSWDIR)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF)
210 $(MSWDIR)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF)
212 $(MSWDIR)\snglinst.obj: $(MSWDIR)\snglinst.$(SRCSUFF)
214 $(MSWDIR)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF)
216 $(MSWDIR)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF)
218 $(MSWDIR)\utilsexc.obj: $(MSWDIR)\utilsexc.$(SRCSUFF)
220 $(MSWDIR)\volume.obj: $(MSWDIR)\volume.$(SRCSUFF)
224 ########################################################
225 # Common objects (always compiled)
227 $(MSWDIR)\appcmn.obj: $(COMMDIR)\appcmn.$(SRCSUFF)
229 $(MSWDIR)\clntdata.obj: $(COMMDIR)\clntdata.$(SRCSUFF)
231 $(MSWDIR)\cmdline.obj: $(COMMDIR)\cmdline.$(SRCSUFF)
233 $(MSWDIR)\config.obj: $(COMMDIR)\config.$(SRCSUFF)
235 $(MSWDIR)\datacmn.obj: $(COMMDIR)\datacmn.$(SRCSUFF)
237 $(MSWDIR)\datetime.obj: $(COMMDIR)\datetime.$(SRCSUFF)
239 $(MSWDIR)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF)
241 $(MSWDIR)\db.obj: $(COMMDIR)\db.$(SRCSUFF)
243 $(MSWDIR)\dbtable.obj: $(COMMDIR)\dbtable.$(SRCSUFF)
245 $(MSWDIR)\dircmn.obj: $(COMMDIR)\dircmn.$(SRCSUFF)
247 $(MSWDIR)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF)
249 $(MSWDIR)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF)
251 $(MSWDIR)\dynload.obj: $(COMMDIR)\dynload.$(SRCSUFF)
253 $(MSWDIR)\encconv.obj: $(COMMDIR)\encconv.$(SRCSUFF)
255 $(MSWDIR)\event.obj: $(COMMDIR)\event.$(SRCSUFF)
257 $(MSWDIR)\extended.obj: $(COMMDIR)\extended.c
259 $(MSWDIR)\ffile.obj: $(COMMDIR)\ffile.$(SRCSUFF)
261 $(MSWDIR)\file.obj: $(COMMDIR)\file.$(SRCSUFF)
263 $(MSWDIR)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF)
265 $(MSWDIR)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF)
267 $(MSWDIR)\filename.obj: $(COMMDIR)\filename.$(SRCSUFF)
269 $(MSWDIR)\filesys.obj: $(COMMDIR)\filesys.$(SRCSUFF)
271 $(MSWDIR)\fontmap.obj: $(COMMDIR)\fontmap.$(SRCSUFF)
273 $(MSWDIR)\fs_inet.obj: $(COMMDIR)\fs_inet.$(SRCSUFF)
275 $(MSWDIR)\fs_mem.obj: $(COMMDIR)\fs_mem.$(SRCSUFF)
277 $(MSWDIR)\fs_zip.obj: $(COMMDIR)\fs_zip.$(SRCSUFF)
279 $(MSWDIR)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF)
281 $(MSWDIR)\hash.obj: $(COMMDIR)\hash.$(SRCSUFF)
283 $(MSWDIR)\hashmap.obj: $(COMMDIR)\hashmap.$(SRCSUFF)
285 $(MSWDIR)\http.obj: $(COMMDIR)\http.$(SRCSUFF)
287 $(MSWDIR)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF)
289 $(MSWDIR)\ipcbase.obj: $(COMMDIR)\ipcbase.$(SRCSUFF)
291 $(MSWDIR)\list.obj: $(COMMDIR)\list.$(SRCSUFF)
293 $(MSWDIR)\log.obj: $(COMMDIR)\log.$(SRCSUFF)
295 $(MSWDIR)\longlong.obj: $(COMMDIR)\longlong.$(SRCSUFF)
297 $(MSWDIR)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)
299 $(MSWDIR)\mimecmn.obj: $(COMMDIR)\mimecmn.$(SRCSUFF)
301 $(MSWDIR)\module.obj: $(COMMDIR)\module.$(SRCSUFF)
303 $(MSWDIR)\msgout.obj: $(COMMDIR)\msgout.$(SRCSUFF)
305 $(MSWDIR)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF)
307 $(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF)
309 $(MSWDIR)\process.obj: $(COMMDIR)\process.$(SRCSUFF)
311 $(MSWDIR)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF)
313 $(MSWDIR)\regex.obj: $(COMMDIR)\regex.$(SRCSUFF)
315 $(MSWDIR)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF)
317 $(MSWDIR)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF)
319 $(MSWDIR)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF)
321 $(MSWDIR)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF)
323 $(MSWDIR)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF)
325 $(MSWDIR)\strconv.obj: $(COMMDIR)\strconv.$(SRCSUFF)
327 $(MSWDIR)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF)
329 $(MSWDIR)\string.obj: $(COMMDIR)\string.$(SRCSUFF)
331 $(MSWDIR)\sysopt.obj: $(COMMDIR)\sysopt.$(SRCSUFF)
333 $(MSWDIR)\textbuf.obj: $(COMMDIR)\textbuf.$(SRCSUFF)
335 $(MSWDIR)\textfile.obj: $(COMMDIR)\textfile.$(SRCSUFF)
337 $(MSWDIR)\timercmn.obj: $(COMMDIR)\timercmn.$(SRCSUFF)
339 $(MSWDIR)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF)
341 $(MSWDIR)\txtstrm.obj: $(COMMDIR)\txtstrm.$(SRCSUFF)
343 $(MSWDIR)\unzip.obj: $(COMMDIR)\unzip.c
345 $(MSWDIR)\url.obj: $(COMMDIR)\url.$(SRCSUFF)
347 $(MSWDIR)\utilscmn.obj: $(COMMDIR)\utilscmn.$(SRCSUFF)
349 $(MSWDIR)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF)
351 $(MSWDIR)\wfstream.obj: $(COMMDIR)\wfstream.$(SRCSUFF)
353 $(MSWDIR)\wxchar.obj: $(COMMDIR)\wxchar.$(SRCSUFF)
355 $(MSWDIR)\zipstrm.obj: $(COMMDIR)\zipstrm.$(SRCSUFF)
357 $(MSWDIR)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF)
359 $(MSWDIR)\init.obj: $(COMMDIR)\init.$(SRCSUFF)
366 ${MAKE} -f makefile.b32
371 ${MAKE} -f makefile.b32
376 ${MAKE} -f makefile.b32 all_execs
381 ${MAKE} -f makefile.b32 wxUSE_GUI=0
386 ${MAKE} -f makefile.b32 clean
391 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
396 ${MAKE} -f makefile.b32 clean
401 ${MAKE} -f makefile.b32 wxUSE_GUI=0
406 ${MAKE} -f makefile.b32 clean
410 cd $(WXDIR)\src\regex
411 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
415 cd $(WXDIR)\src\regex
416 ${MAKE} -f makefile.b32 clean
421 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
426 ${MAKE} -f makefile.b32 clean
432 -H=$(WXDIR)\src\msw\wx32.csm
440 -w-hid # virtual function A hides virtual function B
444 -I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff;$(THISDIR)
445 -I$(WXDIR)\include\wx\msw\gnuwin32
447 -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
457 clean: $(PERIPH_CLEAN_TARGET)
458 -erase $(WXLIBDIR)\wx.tds
459 -erase $(WXLIBDIR)\wx.il?
468 cd $(WXWIN)\distrib\msw\tmake
469 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
470 copy makefile.$(MFTYPE) $(WXWIN)\src\msw