]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makebase.b32
GetIcon() returns wxIconLocation, not wxIcon, now
[wxWidgets.git] / src / msw / makebase.b32
CommitLineData
8c3288a7
CE
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
26WXDIR = $(WXWIN)
27THISDIR = $(WXDIR)\src\msw
28
29# Set all these to 1 if you want to build a dynamic library
30!if "$(DLL)" == "1"
31WXMAKINGDLL=1
32WXBUILDDLL=1
33!endif
34
35wxUSE_GUI=0
36
37!include $(WXDIR)\src\makeb32.env
38
39PERIPH_LIBS=
2b5f62a0
VZ
40PERIPH_TARGET=zlib regex $(PERIPH_TARGET)
41PERIPH_CLEAN_TARGET=clean_zlib clean_regex $(PERIPH_CLEAN_TARGET)
8c3288a7
CE
42
43!if "$(DLL)" == "0"
44DUMMY=dummy
45!else
46DUMMY=dummydll
1997b8ba 47LIBS= cw32mti import32 ole2w32 odbc32 zlib regex
8c3288a7
CE
48!endif
49
50LIBTARGET=$(WXLIB)
51
52GENDIR=..\generic
53COMMDIR=..\common
54HTMLDIR=..\html
55OLEDIR=.\ole
56MSWDIR=.
57
58DOCDIR = $(WXDIR)\docs
59
60COMMONOBJS = \
1997b8ba
CE
61 $(OBJ_PATH)\appcmn.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)\fontmap.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)\strconv.obj \
110 $(OBJ_PATH)\stream.obj \
111 $(OBJ_PATH)\string.obj \
112 $(OBJ_PATH)\sysopt.obj \
113 $(OBJ_PATH)\textbuf.obj \
114 $(OBJ_PATH)\textfile.obj \
115 $(OBJ_PATH)\timercmn.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
128MSWOBJS = $(OBJ_PATH)\dde.obj \
129 $(OBJ_PATH)\dir.obj \
130 $(OBJ_PATH)\gsocket.obj \
131 $(OBJ_PATH)\gsockmsw.obj \
132 $(OBJ_PATH)\main.obj \
133 $(OBJ_PATH)\mimetype.obj \
134 $(OBJ_PATH)\regconf.obj \
135 $(OBJ_PATH)\registry.obj \
136 $(OBJ_PATH)\snglinst.obj \
137 $(OBJ_PATH)\thread.obj \
138 $(OBJ_PATH)\utils.obj \
139 $(OBJ_PATH)\utilsexc.obj \
140 $(OBJ_PATH)\volume.obj
8c3288a7
CE
141
142OBJECTS = $(COMMONOBJS) $(MSWOBJS)
143
144default: wx
145
1997b8ba 146wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph makeoutdir $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
8c3288a7
CE
147
148all: wx
149
1997b8ba
CE
150makeoutdir:
151 -mkdir $(OBJ_PATH)
152
8c3288a7
CE
153# Copy the in-CVS setup0.h to setup.h if necessary
154makesetuph:
155 cd $(WXDIR)\include\wx\msw
156 if not exist setup.h copy setup0.h setup.h
157 cd $(WXDIR)\src\msw
158
159# Copy include\wx\msw\setup.h to the architecture-specific location
160makearchsetuph:
161 copy $(WXDIR)\include\wx\msw\setup.h $(ARCHSETUPH)
162 cd $(WXDIR)\src\msw
163
164$(ARCHINCDIR)\wx:
165 -mkdir $(ARCHINCDIR)
166 -mkdir $(ARCHINCDIR)\wx
2dcd33c2 167 -erase $(CFG)
8c3288a7
CE
168
169!if "$(DLL)" == "0"
170
171$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
172 -erase $(WXLIB)
173 tlib "$(WXLIB)" /P1024 @&&!
174+$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
175!
176
177!else
178
179$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
180 -erase $(WXLIB)
181 -erase $(WXDLL)
182 $(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
183c0d32.obj $(OBJECTS)
184$(WXLIBDIR)\$(WXLIBNAME)
185nul
186$(PERIPH_LIBS) $(LIBS)
187wxb32
188!
189 implib -c $(LIBTARGET) $(WXLIBDIR)\$(WXLIBNAME).dll
190!endif
191
192dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
193dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res
194
195version.res:
196 brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
197
1997b8ba 198$(OBJ_PATH)\dde.obj: $(MSWDIR)\dde.$(SRCSUFF)
8c3288a7 199
1997b8ba 200$(OBJ_PATH)\dir.obj: $(MSWDIR)\dir.$(SRCSUFF)
8c3288a7 201
1997b8ba 202$(OBJ_PATH)\gsocket.obj: $(MSWDIR)\gsocket.c
8c3288a7 203
1997b8ba 204$(OBJ_PATH)\gsockmsw.obj: $(MSWDIR)\gsockmsw.c
8c3288a7 205
1997b8ba 206$(OBJ_PATH)\main.obj: $(MSWDIR)\main.$(SRCSUFF)
8c3288a7 207
1997b8ba 208$(OBJ_PATH)\mimetype.obj: $(MSWDIR)\mimetype.$(SRCSUFF)
8c3288a7 209
1997b8ba 210$(OBJ_PATH)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF)
8c3288a7 211
1997b8ba 212$(OBJ_PATH)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF)
8c3288a7 213
1997b8ba 214$(OBJ_PATH)\snglinst.obj: $(MSWDIR)\snglinst.$(SRCSUFF)
8c3288a7 215
1997b8ba 216$(OBJ_PATH)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF)
8c3288a7 217
1997b8ba 218$(OBJ_PATH)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF)
8c3288a7 219
1997b8ba 220$(OBJ_PATH)\utilsexc.obj: $(MSWDIR)\utilsexc.$(SRCSUFF)
8c3288a7 221
1997b8ba 222$(OBJ_PATH)\volume.obj: $(MSWDIR)\volume.$(SRCSUFF)
8c3288a7
CE
223
224
225
226########################################################
227# Common objects (always compiled)
228
1997b8ba 229$(OBJ_PATH)\appcmn.obj: $(COMMDIR)\appcmn.$(SRCSUFF)
8c3288a7 230
1997b8ba 231$(OBJ_PATH)\clntdata.obj: $(COMMDIR)\clntdata.$(SRCSUFF)
8c3288a7 232
1997b8ba 233$(OBJ_PATH)\cmdline.obj: $(COMMDIR)\cmdline.$(SRCSUFF)
8c3288a7 234
1997b8ba 235$(OBJ_PATH)\config.obj: $(COMMDIR)\config.$(SRCSUFF)
bfe835d0 236
1997b8ba 237$(OBJ_PATH)\datetime.obj: $(COMMDIR)\datetime.$(SRCSUFF)
8c3288a7 238
1997b8ba 239$(OBJ_PATH)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF)
8c3288a7 240
1997b8ba 241$(OBJ_PATH)\db.obj: $(COMMDIR)\db.$(SRCSUFF)
8c3288a7 242
1997b8ba 243$(OBJ_PATH)\dbtable.obj: $(COMMDIR)\dbtable.$(SRCSUFF)
8c3288a7 244
1997b8ba 245$(OBJ_PATH)\dircmn.obj: $(COMMDIR)\dircmn.$(SRCSUFF)
8c3288a7 246
1997b8ba 247$(OBJ_PATH)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF)
8c3288a7 248
1997b8ba 249$(OBJ_PATH)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF)
8c3288a7 250
1997b8ba 251$(OBJ_PATH)\dynload.obj: $(COMMDIR)\dynload.$(SRCSUFF)
8c3288a7 252
1997b8ba 253$(OBJ_PATH)\encconv.obj: $(COMMDIR)\encconv.$(SRCSUFF)
8c3288a7 254
1997b8ba 255$(OBJ_PATH)\event.obj: $(COMMDIR)\event.$(SRCSUFF)
8c3288a7 256
1997b8ba 257$(OBJ_PATH)\extended.obj: $(COMMDIR)\extended.c
8c3288a7 258
1997b8ba 259$(OBJ_PATH)\ffile.obj: $(COMMDIR)\ffile.$(SRCSUFF)
8c3288a7 260
1997b8ba 261$(OBJ_PATH)\file.obj: $(COMMDIR)\file.$(SRCSUFF)
8c3288a7 262
1997b8ba 263$(OBJ_PATH)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF)
8c3288a7 264
1997b8ba 265$(OBJ_PATH)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF)
8c3288a7 266
1997b8ba 267$(OBJ_PATH)\filename.obj: $(COMMDIR)\filename.$(SRCSUFF)
8c3288a7 268
1997b8ba 269$(OBJ_PATH)\filesys.obj: $(COMMDIR)\filesys.$(SRCSUFF)
8c3288a7 270
1997b8ba 271$(OBJ_PATH)\fontmap.obj: $(COMMDIR)\fontmap.$(SRCSUFF)
8c3288a7 272
1997b8ba 273$(OBJ_PATH)\fs_inet.obj: $(COMMDIR)\fs_inet.$(SRCSUFF)
8c3288a7 274
1997b8ba 275$(OBJ_PATH)\fs_mem.obj: $(COMMDIR)\fs_mem.$(SRCSUFF)
8c3288a7 276
1997b8ba 277$(OBJ_PATH)\fs_zip.obj: $(COMMDIR)\fs_zip.$(SRCSUFF)
8c3288a7 278
1997b8ba 279$(OBJ_PATH)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF)
8c3288a7 280
1997b8ba 281$(OBJ_PATH)\hash.obj: $(COMMDIR)\hash.$(SRCSUFF)
8c3288a7 282
1997b8ba 283$(OBJ_PATH)\hashmap.obj: $(COMMDIR)\hashmap.$(SRCSUFF)
8c3288a7 284
1997b8ba 285$(OBJ_PATH)\http.obj: $(COMMDIR)\http.$(SRCSUFF)
8c3288a7 286
1997b8ba 287$(OBJ_PATH)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF)
8c3288a7 288
1997b8ba 289$(OBJ_PATH)\ipcbase.obj: $(COMMDIR)\ipcbase.$(SRCSUFF)
8c3288a7 290
1997b8ba 291$(OBJ_PATH)\list.obj: $(COMMDIR)\list.$(SRCSUFF)
8c3288a7 292
1997b8ba 293$(OBJ_PATH)\log.obj: $(COMMDIR)\log.$(SRCSUFF)
8c3288a7 294
1997b8ba 295$(OBJ_PATH)\longlong.obj: $(COMMDIR)\longlong.$(SRCSUFF)
8c3288a7 296
1997b8ba 297$(OBJ_PATH)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)
8c3288a7 298
1997b8ba 299$(OBJ_PATH)\mimecmn.obj: $(COMMDIR)\mimecmn.$(SRCSUFF)
8c3288a7 300
1997b8ba 301$(OBJ_PATH)\module.obj: $(COMMDIR)\module.$(SRCSUFF)
8c3288a7 302
1997b8ba 303$(OBJ_PATH)\msgout.obj: $(COMMDIR)\msgout.$(SRCSUFF)
8c3288a7 304
1997b8ba 305$(OBJ_PATH)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF)
8c3288a7 306
1997b8ba 307$(OBJ_PATH)\object.obj: $(COMMDIR)\object.$(SRCSUFF)
8c3288a7 308
1997b8ba 309$(OBJ_PATH)\process.obj: $(COMMDIR)\process.$(SRCSUFF)
8c3288a7 310
1997b8ba 311$(OBJ_PATH)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF)
8c3288a7 312
1997b8ba 313$(OBJ_PATH)\regex.obj: $(COMMDIR)\regex.$(SRCSUFF)
8c3288a7 314
1997b8ba 315$(OBJ_PATH)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF)
8c3288a7 316
1997b8ba 317$(OBJ_PATH)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF)
8c3288a7 318
1997b8ba 319$(OBJ_PATH)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF)
8c3288a7 320
1997b8ba 321$(OBJ_PATH)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF)
8c3288a7 322
1997b8ba 323$(OBJ_PATH)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF)
8c3288a7 324
1997b8ba 325$(OBJ_PATH)\strconv.obj: $(COMMDIR)\strconv.$(SRCSUFF)
8c3288a7 326
1997b8ba 327$(OBJ_PATH)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF)
8c3288a7 328
1997b8ba 329$(OBJ_PATH)\string.obj: $(COMMDIR)\string.$(SRCSUFF)
8c3288a7 330
1997b8ba 331$(OBJ_PATH)\sysopt.obj: $(COMMDIR)\sysopt.$(SRCSUFF)
8c3288a7 332
1997b8ba 333$(OBJ_PATH)\textbuf.obj: $(COMMDIR)\textbuf.$(SRCSUFF)
8c3288a7 334
1997b8ba 335$(OBJ_PATH)\textfile.obj: $(COMMDIR)\textfile.$(SRCSUFF)
8c3288a7 336
1997b8ba 337$(OBJ_PATH)\timercmn.obj: $(COMMDIR)\timercmn.$(SRCSUFF)
8c3288a7 338
1997b8ba 339$(OBJ_PATH)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF)
8c3288a7 340
1997b8ba 341$(OBJ_PATH)\txtstrm.obj: $(COMMDIR)\txtstrm.$(SRCSUFF)
8c3288a7 342
1997b8ba 343$(OBJ_PATH)\unzip.obj: $(COMMDIR)\unzip.c
8c3288a7 344
1997b8ba 345$(OBJ_PATH)\url.obj: $(COMMDIR)\url.$(SRCSUFF)
8c3288a7 346
1997b8ba 347$(OBJ_PATH)\utilscmn.obj: $(COMMDIR)\utilscmn.$(SRCSUFF)
8c3288a7 348
1997b8ba 349$(OBJ_PATH)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF)
8c3288a7 350
1997b8ba 351$(OBJ_PATH)\wfstream.obj: $(COMMDIR)\wfstream.$(SRCSUFF)
8c3288a7 352
1997b8ba 353$(OBJ_PATH)\wxchar.obj: $(COMMDIR)\wxchar.$(SRCSUFF)
8c3288a7 354
1997b8ba 355$(OBJ_PATH)\zipstrm.obj: $(COMMDIR)\zipstrm.$(SRCSUFF)
8c3288a7 356
1997b8ba 357$(OBJ_PATH)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF)
8c3288a7 358
1997b8ba 359$(OBJ_PATH)\init.obj: $(COMMDIR)\init.$(SRCSUFF)
8c3288a7
CE
360
361
362
363
364all_utils:
365 cd $(WXDIR)\utils
366 ${MAKE} -f makefile.b32
367 cd $(WXDIR)\src\msw
368
369all_samples:
370 cd $(WXDIR)\samples
371 ${MAKE} -f makefile.b32
372 cd $(WXDIR)\src\msw
373
374all_execs:
375 cd $(WXDIR)\utils
376 ${MAKE} -f makefile.b32 all_execs
377 cd $(WXDIR)\src\msw
378
8c3288a7 379
8c3288a7
CE
380
381zlib: $(CFG)
382 cd $(WXDIR)\src\zlib
383 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
384 cd $(WXDIR)\src\msw
385
386clean_zlib:
387 cd $(WXDIR)\src\zlib
388 ${MAKE} -f makefile.b32 clean
389 cd $(WXDIR)\src\msw
390
8c3288a7
CE
391
392regex: $(CFG)
393 cd $(WXDIR)\src\regex
394 ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
395 cd $(WXDIR)\src\msw
396
397clean_regex:
398 cd $(WXDIR)\src\regex
399 ${MAKE} -f makefile.b32 clean
400 cd $(WXDIR)\src\msw
401
8c3288a7 402
8c3288a7
CE
403
404$(CFG): makebase.b32
405 copy &&!
406-Hc
407-H=$(WXDIR)\src\msw\wx32.csm
408-3
409-d
410-a1 # byte alignment
411-R-
412-X
413-w-par
414-w-aus
415-w-hid # virtual function A hides virtual function B
416-tWM
417-tWC
418
419-I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff;$(THISDIR)
420-I$(WXDIR)\include\wx\msw\gnuwin32
421
422-L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
423-D__WXWIN__
424-D__WXMSW__
425-D__WINDOWS__
426-DWIN32
427$(OPT)
428$(DEBUG_FLAGS)
429$(WIN95FLAG)
430! $(CFG)
431
432clean: $(PERIPH_CLEAN_TARGET)
1997b8ba
CE
433 -$(RM) $(WXLIBDIR)\*.tds
434 -$(RM) $(WXLIBDIR)\*.il?
435 -$(RM) $(OBJ_PATH)\*.obj
436 -$(RM) $(OBJ_PATH)\*.pch
437 -$(RM) $(OBJ_PATH)\*.csm
438 -$(RM) $(OBJ_PATH)\"wx32.#??"
439
440cleancfg:
441 -$(RM) $(OBJ_PATH)\*.cfg
442
443
444cleanall: clean cleancfg
8c3288a7 445
8c3288a7
CE
446
447self:
448 cd $(WXWIN)\distrib\msw\tmake
1997b8ba
CE
449 perl -S tmake -tb32base wxwin.pro -o makebase.b32
450 copy makebase.b32 $(WXWIN)\src\msw