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