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 regex
58 DOCDIR = $(WXDIR)\docs
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 \
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 \
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 \
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 \
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
144 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
148 wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph makeoutdir $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
155 # Copy the in-CVS setup0.h to setup.h if necessary
157 cd $(WXDIR)\include\wx\msw
158 if not exist setup.h copy setup0.h setup.h
161 # Copy include\wx\msw\setup.h to the architecture-specific location
163 copy $(WXDIR)\include\wx\msw\setup.h $(ARCHSETUPH)
168 -mkdir $(ARCHINCDIR)\wx
173 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
175 tlib "$(WXLIB)" /P1024 @&&!
176 +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
181 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
184 $(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
186 $(WXLIBDIR)\$(WXLIBNAME)
188 $(PERIPH_LIBS) $(LIBS)
191 implib -c $(LIBTARGET) $(WXLIBDIR)\$(WXLIBNAME).dll
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
198 brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
200 $(OBJ_PATH)\basemsw.obj: $(MSWDIR)\basemsw.$(SRCSUFF)
202 $(OBJ_PATH)\dde.obj: $(MSWDIR)\dde.$(SRCSUFF)
204 $(OBJ_PATH)\dir.obj: $(MSWDIR)\dir.$(SRCSUFF)
206 $(OBJ_PATH)\gsocket.obj: $(MSWDIR)\gsocket.c
208 $(OBJ_PATH)\gsockmsw.obj: $(MSWDIR)\gsockmsw.c
210 $(OBJ_PATH)\main.obj: $(MSWDIR)\main.$(SRCSUFF)
212 $(OBJ_PATH)\mimetype.obj: $(MSWDIR)\mimetype.$(SRCSUFF)
214 $(OBJ_PATH)\mslu.obj: $(MSWDIR)\mslu.$(SRCSUFF)
216 $(OBJ_PATH)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF)
218 $(OBJ_PATH)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF)
220 $(OBJ_PATH)\snglinst.obj: $(MSWDIR)\snglinst.$(SRCSUFF)
222 $(OBJ_PATH)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF)
224 $(OBJ_PATH)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF)
226 $(OBJ_PATH)\utilsexc.obj: $(MSWDIR)\utilsexc.$(SRCSUFF)
228 $(OBJ_PATH)\volume.obj: $(MSWDIR)\volume.$(SRCSUFF)
232 ########################################################
233 # Common objects (always compiled)
235 $(OBJ_PATH)\appbase.obj: $(COMMDIR)\appbase.$(SRCSUFF)
237 $(OBJ_PATH)\clntdata.obj: $(COMMDIR)\clntdata.$(SRCSUFF)
239 $(OBJ_PATH)\cmdline.obj: $(COMMDIR)\cmdline.$(SRCSUFF)
241 $(OBJ_PATH)\config.obj: $(COMMDIR)\config.$(SRCSUFF)
243 $(OBJ_PATH)\datetime.obj: $(COMMDIR)\datetime.$(SRCSUFF)
245 $(OBJ_PATH)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF)
247 $(OBJ_PATH)\db.obj: $(COMMDIR)\db.$(SRCSUFF)
249 $(OBJ_PATH)\dbtable.obj: $(COMMDIR)\dbtable.$(SRCSUFF)
251 $(OBJ_PATH)\dircmn.obj: $(COMMDIR)\dircmn.$(SRCSUFF)
253 $(OBJ_PATH)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF)
255 $(OBJ_PATH)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF)
257 $(OBJ_PATH)\dynload.obj: $(COMMDIR)\dynload.$(SRCSUFF)
259 $(OBJ_PATH)\encconv.obj: $(COMMDIR)\encconv.$(SRCSUFF)
261 $(OBJ_PATH)\event.obj: $(COMMDIR)\event.$(SRCSUFF)
263 $(OBJ_PATH)\extended.obj: $(COMMDIR)\extended.c
265 $(OBJ_PATH)\ffile.obj: $(COMMDIR)\ffile.$(SRCSUFF)
267 $(OBJ_PATH)\file.obj: $(COMMDIR)\file.$(SRCSUFF)
269 $(OBJ_PATH)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF)
271 $(OBJ_PATH)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF)
273 $(OBJ_PATH)\filename.obj: $(COMMDIR)\filename.$(SRCSUFF)
275 $(OBJ_PATH)\filesys.obj: $(COMMDIR)\filesys.$(SRCSUFF)
277 $(OBJ_PATH)\fmapbase.obj: $(COMMDIR)\fmapbase.$(SRCSUFF)
279 $(OBJ_PATH)\fs_inet.obj: $(COMMDIR)\fs_inet.$(SRCSUFF)
281 $(OBJ_PATH)\fs_mem.obj: $(COMMDIR)\fs_mem.$(SRCSUFF)
283 $(OBJ_PATH)\fs_zip.obj: $(COMMDIR)\fs_zip.$(SRCSUFF)
285 $(OBJ_PATH)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF)
287 $(OBJ_PATH)\hash.obj: $(COMMDIR)\hash.$(SRCSUFF)
289 $(OBJ_PATH)\hashmap.obj: $(COMMDIR)\hashmap.$(SRCSUFF)
291 $(OBJ_PATH)\http.obj: $(COMMDIR)\http.$(SRCSUFF)
293 $(OBJ_PATH)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF)
295 $(OBJ_PATH)\ipcbase.obj: $(COMMDIR)\ipcbase.$(SRCSUFF)
297 $(OBJ_PATH)\list.obj: $(COMMDIR)\list.$(SRCSUFF)
299 $(OBJ_PATH)\log.obj: $(COMMDIR)\log.$(SRCSUFF)
301 $(OBJ_PATH)\longlong.obj: $(COMMDIR)\longlong.$(SRCSUFF)
303 $(OBJ_PATH)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)
305 $(OBJ_PATH)\mimecmn.obj: $(COMMDIR)\mimecmn.$(SRCSUFF)
307 $(OBJ_PATH)\module.obj: $(COMMDIR)\module.$(SRCSUFF)
309 $(OBJ_PATH)\msgout.obj: $(COMMDIR)\msgout.$(SRCSUFF)
311 $(OBJ_PATH)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF)
313 $(OBJ_PATH)\object.obj: $(COMMDIR)\object.$(SRCSUFF)
315 $(OBJ_PATH)\process.obj: $(COMMDIR)\process.$(SRCSUFF)
317 $(OBJ_PATH)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF)
319 $(OBJ_PATH)\regex.obj: $(COMMDIR)\regex.$(SRCSUFF)
321 $(OBJ_PATH)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF)
323 $(OBJ_PATH)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF)
325 $(OBJ_PATH)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF)
327 $(OBJ_PATH)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF)
329 $(OBJ_PATH)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF)
331 $(OBJ_PATH)\stopwatch.obj: $(COMMDIR)\stopwatch.$(SRCSUFF)
333 $(OBJ_PATH)\strconv.obj: $(COMMDIR)\strconv.$(SRCSUFF)
335 $(OBJ_PATH)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF)
337 $(OBJ_PATH)\string.obj: $(COMMDIR)\string.$(SRCSUFF)
339 $(OBJ_PATH)\sysopt.obj: $(COMMDIR)\sysopt.$(SRCSUFF)
341 $(OBJ_PATH)\textbuf.obj: $(COMMDIR)\textbuf.$(SRCSUFF)
343 $(OBJ_PATH)\textfile.obj: $(COMMDIR)\textfile.$(SRCSUFF)
345 $(OBJ_PATH)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF)
347 $(OBJ_PATH)\txtstrm.obj: $(COMMDIR)\txtstrm.$(SRCSUFF)
349 $(OBJ_PATH)\unzip.obj: $(COMMDIR)\unzip.c
351 $(OBJ_PATH)\url.obj: $(COMMDIR)\url.$(SRCSUFF)
353 $(OBJ_PATH)\utilscmn.obj: $(COMMDIR)\utilscmn.$(SRCSUFF)
355 $(OBJ_PATH)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF)
357 $(OBJ_PATH)\wfstream.obj: $(COMMDIR)\wfstream.$(SRCSUFF)
359 $(OBJ_PATH)\wxchar.obj: $(COMMDIR)\wxchar.$(SRCSUFF)
361 $(OBJ_PATH)\zipstrm.obj: $(COMMDIR)\zipstrm.$(SRCSUFF)
363 $(OBJ_PATH)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF)
365 $(OBJ_PATH)\init.obj: $(COMMDIR)\init.$(SRCSUFF)
372 ${MAKE} -f makefile.b32
377 ${MAKE} -f makefile.b32
382 ${MAKE} -f makefile.b32 all_execs
389 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
394 ${MAKE} -f makefile.b32 clean
399 cd $(WXDIR)\src\regex
400 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
404 cd $(WXDIR)\src\regex
405 ${MAKE} -f makefile.b32 clean
413 -H=$(WXDIR)\src\msw\wx32.csm
421 -w-hid # virtual function A hides virtual function B
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
428 -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
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.#??"
447 -$(RM) $(OBJ_PATH)\*.cfg
450 cleanall: clean cleancfg
454 cd $(WXWIN)\distrib\msw\tmake
455 perl -S tmake -tb32base wxwin.pro -o makebase.b32
456 copy makebase.b32 $(WXWIN)\src\msw