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)\datetime.obj \
66 $(MSWDIR)\datstrm.obj \
68 $(MSWDIR)\dbtable.obj \
69 $(MSWDIR)\dircmn.obj \
70 $(MSWDIR)\dynarray.obj \
71 $(MSWDIR)\dynlib.obj \
72 $(MSWDIR)\dynload.obj \
73 $(MSWDIR)\encconv.obj \
75 $(MSWDIR)\extended.obj \
78 $(MSWDIR)\fileconf.obj \
79 $(MSWDIR)\filefn.obj \
80 $(MSWDIR)\filename.obj \
81 $(MSWDIR)\filesys.obj \
82 $(MSWDIR)\fontmap.obj \
83 $(MSWDIR)\fs_inet.obj \
84 $(MSWDIR)\fs_mem.obj \
85 $(MSWDIR)\fs_zip.obj \
88 $(MSWDIR)\hashmap.obj \
91 $(MSWDIR)\ipcbase.obj \
94 $(MSWDIR)\longlong.obj \
95 $(MSWDIR)\memory.obj \
96 $(MSWDIR)\mimecmn.obj \
97 $(MSWDIR)\module.obj \
98 $(MSWDIR)\msgout.obj \
99 $(MSWDIR)\mstream.obj \
100 $(MSWDIR)\object.obj \
101 $(MSWDIR)\process.obj \
102 $(MSWDIR)\protocol.obj \
103 $(MSWDIR)\regex.obj \
104 $(MSWDIR)\sckaddr.obj \
105 $(MSWDIR)\sckfile.obj \
106 $(MSWDIR)\sckipc.obj \
107 $(MSWDIR)\sckstrm.obj \
108 $(MSWDIR)\socket.obj \
109 $(MSWDIR)\strconv.obj \
110 $(MSWDIR)\stream.obj \
111 $(MSWDIR)\string.obj \
112 $(MSWDIR)\sysopt.obj \
113 $(MSWDIR)\textbuf.obj \
114 $(MSWDIR)\textfile.obj \
115 $(MSWDIR)\timercmn.obj \
116 $(MSWDIR)\tokenzr.obj \
117 $(MSWDIR)\txtstrm.obj \
118 $(MSWDIR)\unzip.obj \
120 $(MSWDIR)\utilscmn.obj \
121 $(MSWDIR)\variant.obj \
122 $(MSWDIR)\wfstream.obj \
123 $(MSWDIR)\wxchar.obj \
124 $(MSWDIR)\zipstrm.obj \
125 $(MSWDIR)\zstream.obj \
128 MSWOBJS = $(MSWDIR)\dde.obj \
130 $(MSWDIR)\gsocket.obj \
131 $(MSWDIR)\gsockmsw.obj \
133 $(MSWDIR)\mimetype.obj \
134 $(MSWDIR)\regconf.obj \
135 $(MSWDIR)\registry.obj \
136 $(MSWDIR)\snglinst.obj \
137 $(MSWDIR)\thread.obj \
138 $(MSWDIR)\utils.obj \
139 $(MSWDIR)\utilsexc.obj \
142 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
146 wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
150 # Copy the in-CVS setup0.h to setup.h if necessary
152 cd $(WXDIR)\include\wx\msw
153 if not exist setup.h copy setup0.h setup.h
156 # Copy include\wx\msw\setup.h to the architecture-specific location
158 copy $(WXDIR)\include\wx\msw\setup.h $(ARCHSETUPH)
163 -mkdir $(ARCHINCDIR)\wx
168 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
170 tlib "$(WXLIB)" /P1024 @&&!
171 +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
176 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
179 $(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
181 $(WXLIBDIR)\$(WXLIBNAME)
183 $(PERIPH_LIBS) $(LIBS)
186 implib -c $(LIBTARGET) $(WXLIBDIR)\$(WXLIBNAME).dll
189 dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
190 dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res
193 brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
195 $(MSWDIR)\dde.obj: $(MSWDIR)\dde.$(SRCSUFF)
197 $(MSWDIR)\dir.obj: $(MSWDIR)\dir.$(SRCSUFF)
199 $(MSWDIR)\gsocket.obj: $(MSWDIR)\gsocket.c
201 $(MSWDIR)\gsockmsw.obj: $(MSWDIR)\gsockmsw.c
203 $(MSWDIR)\main.obj: $(MSWDIR)\main.$(SRCSUFF)
205 $(MSWDIR)\mimetype.obj: $(MSWDIR)\mimetype.$(SRCSUFF)
207 $(MSWDIR)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF)
209 $(MSWDIR)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF)
211 $(MSWDIR)\snglinst.obj: $(MSWDIR)\snglinst.$(SRCSUFF)
213 $(MSWDIR)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF)
215 $(MSWDIR)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF)
217 $(MSWDIR)\utilsexc.obj: $(MSWDIR)\utilsexc.$(SRCSUFF)
219 $(MSWDIR)\volume.obj: $(MSWDIR)\volume.$(SRCSUFF)
223 ########################################################
224 # Common objects (always compiled)
226 $(MSWDIR)\appcmn.obj: $(COMMDIR)\appcmn.$(SRCSUFF)
228 $(MSWDIR)\clntdata.obj: $(COMMDIR)\clntdata.$(SRCSUFF)
230 $(MSWDIR)\cmdline.obj: $(COMMDIR)\cmdline.$(SRCSUFF)
232 $(MSWDIR)\config.obj: $(COMMDIR)\config.$(SRCSUFF)
234 $(MSWDIR)\datetime.obj: $(COMMDIR)\datetime.$(SRCSUFF)
236 $(MSWDIR)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF)
238 $(MSWDIR)\db.obj: $(COMMDIR)\db.$(SRCSUFF)
240 $(MSWDIR)\dbtable.obj: $(COMMDIR)\dbtable.$(SRCSUFF)
242 $(MSWDIR)\dircmn.obj: $(COMMDIR)\dircmn.$(SRCSUFF)
244 $(MSWDIR)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF)
246 $(MSWDIR)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF)
248 $(MSWDIR)\dynload.obj: $(COMMDIR)\dynload.$(SRCSUFF)
250 $(MSWDIR)\encconv.obj: $(COMMDIR)\encconv.$(SRCSUFF)
252 $(MSWDIR)\event.obj: $(COMMDIR)\event.$(SRCSUFF)
254 $(MSWDIR)\extended.obj: $(COMMDIR)\extended.c
256 $(MSWDIR)\ffile.obj: $(COMMDIR)\ffile.$(SRCSUFF)
258 $(MSWDIR)\file.obj: $(COMMDIR)\file.$(SRCSUFF)
260 $(MSWDIR)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF)
262 $(MSWDIR)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF)
264 $(MSWDIR)\filename.obj: $(COMMDIR)\filename.$(SRCSUFF)
266 $(MSWDIR)\filesys.obj: $(COMMDIR)\filesys.$(SRCSUFF)
268 $(MSWDIR)\fontmap.obj: $(COMMDIR)\fontmap.$(SRCSUFF)
270 $(MSWDIR)\fs_inet.obj: $(COMMDIR)\fs_inet.$(SRCSUFF)
272 $(MSWDIR)\fs_mem.obj: $(COMMDIR)\fs_mem.$(SRCSUFF)
274 $(MSWDIR)\fs_zip.obj: $(COMMDIR)\fs_zip.$(SRCSUFF)
276 $(MSWDIR)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF)
278 $(MSWDIR)\hash.obj: $(COMMDIR)\hash.$(SRCSUFF)
280 $(MSWDIR)\hashmap.obj: $(COMMDIR)\hashmap.$(SRCSUFF)
282 $(MSWDIR)\http.obj: $(COMMDIR)\http.$(SRCSUFF)
284 $(MSWDIR)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF)
286 $(MSWDIR)\ipcbase.obj: $(COMMDIR)\ipcbase.$(SRCSUFF)
288 $(MSWDIR)\list.obj: $(COMMDIR)\list.$(SRCSUFF)
290 $(MSWDIR)\log.obj: $(COMMDIR)\log.$(SRCSUFF)
292 $(MSWDIR)\longlong.obj: $(COMMDIR)\longlong.$(SRCSUFF)
294 $(MSWDIR)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)
296 $(MSWDIR)\mimecmn.obj: $(COMMDIR)\mimecmn.$(SRCSUFF)
298 $(MSWDIR)\module.obj: $(COMMDIR)\module.$(SRCSUFF)
300 $(MSWDIR)\msgout.obj: $(COMMDIR)\msgout.$(SRCSUFF)
302 $(MSWDIR)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF)
304 $(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF)
306 $(MSWDIR)\process.obj: $(COMMDIR)\process.$(SRCSUFF)
308 $(MSWDIR)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF)
310 $(MSWDIR)\regex.obj: $(COMMDIR)\regex.$(SRCSUFF)
312 $(MSWDIR)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF)
314 $(MSWDIR)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF)
316 $(MSWDIR)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF)
318 $(MSWDIR)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF)
320 $(MSWDIR)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF)
322 $(MSWDIR)\strconv.obj: $(COMMDIR)\strconv.$(SRCSUFF)
324 $(MSWDIR)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF)
326 $(MSWDIR)\string.obj: $(COMMDIR)\string.$(SRCSUFF)
328 $(MSWDIR)\sysopt.obj: $(COMMDIR)\sysopt.$(SRCSUFF)
330 $(MSWDIR)\textbuf.obj: $(COMMDIR)\textbuf.$(SRCSUFF)
332 $(MSWDIR)\textfile.obj: $(COMMDIR)\textfile.$(SRCSUFF)
334 $(MSWDIR)\timercmn.obj: $(COMMDIR)\timercmn.$(SRCSUFF)
336 $(MSWDIR)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF)
338 $(MSWDIR)\txtstrm.obj: $(COMMDIR)\txtstrm.$(SRCSUFF)
340 $(MSWDIR)\unzip.obj: $(COMMDIR)\unzip.c
342 $(MSWDIR)\url.obj: $(COMMDIR)\url.$(SRCSUFF)
344 $(MSWDIR)\utilscmn.obj: $(COMMDIR)\utilscmn.$(SRCSUFF)
346 $(MSWDIR)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF)
348 $(MSWDIR)\wfstream.obj: $(COMMDIR)\wfstream.$(SRCSUFF)
350 $(MSWDIR)\wxchar.obj: $(COMMDIR)\wxchar.$(SRCSUFF)
352 $(MSWDIR)\zipstrm.obj: $(COMMDIR)\zipstrm.$(SRCSUFF)
354 $(MSWDIR)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF)
356 $(MSWDIR)\init.obj: $(COMMDIR)\init.$(SRCSUFF)
363 ${MAKE} -f makefile.b32
368 ${MAKE} -f makefile.b32
373 ${MAKE} -f makefile.b32 all_execs
378 ${MAKE} -f makefile.b32 wxUSE_GUI=0
383 ${MAKE} -f makefile.b32 clean
388 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
393 ${MAKE} -f makefile.b32 clean
398 ${MAKE} -f makefile.b32 wxUSE_GUI=0
403 ${MAKE} -f makefile.b32 clean
407 cd $(WXDIR)\src\regex
408 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
412 cd $(WXDIR)\src\regex
413 ${MAKE} -f makefile.b32 clean
418 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
423 ${MAKE} -f makefile.b32 clean
429 -H=$(WXDIR)\src\msw\wx32.csm
437 -w-hid # virtual function A hides virtual function B
441 -I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff;$(THISDIR)
442 -I$(WXDIR)\include\wx\msw\gnuwin32
444 -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
454 clean: $(PERIPH_CLEAN_TARGET)
455 -erase $(WXLIBDIR)\wx.tds
456 -erase $(WXLIBDIR)\wx.il?
465 cd $(WXWIN)\distrib\msw\tmake
466 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
467 copy makefile.$(MFTYPE) $(WXWIN)\src\msw