]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makebase.vc
Removed erroneous copyright names and corrected licence spelling
[wxWidgets.git] / src / msw / makebase.vc
CommitLineData
e564aa15 1# This file was automatically generated by tmake
16ce3c2f
GT
2# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE BASEVC.T!
3
4# File: makebase.vc
5# Author: Mark Johnson
6# Created: 12 March 2001
7# Updated:
8# Copyright: (c) 1997, Julian Smart
9#
10# "%W% %G%"
11#
12# Makefile : Builds wxWindows library wxBase(d).lib for VC++ (32-bit)
13# Arguments:
14#
15# FINAL=1 argument to nmake to build version with no debugging info.
16#
17# wxUSE_GUI=0 argument to build wxWindows version with no GUI (Console)
18# - makevc.env changes lib name to wxBase(d).lib
19#
20wxUSE_GUI = 0
21!include <../makevc.env>
22
23THISDIR=$(WXWIN)\src\msw
24
25LIBTARGET=$(WXLIB)
16ce3c2f
GT
26
27# This one overrides the others, to be consistent with the settings in setup.h
28MINIMAL_WXWINDOWS_SETUP=0
29
30PERIPH_LIBS=
31PERIPH_TARGET=
32PERIPH_CLEAN_TARGET=
33
34# These are absolute paths, so that the compiler
35# generates correct __FILE__ symbols for debugging.
36# Otherwise you don't be able to double-click on a memory
37# error to load that file.
38COMMDIR=$(WXDIR)\src\common
39MSWDIR=$(WXDIR)\src\msw
40
41{../common}.cpp{../common/$D}.obj:
42 cl @<<
43$(CPPFLAGS) /Fo$@ /c /Tp $<
44<<
45
46{../common}.c{../common/$D}.obj:
47 cl @<<
48$(CPPFLAGS2) /Fo$@ /c /Tc $<
49<<
50
51{../msw}.cpp{../msw/$D}.obj:
52 cl @<<
53$(CPPFLAGS) /Fo$@ /c /Tp $<
54<<
55
56{../msw}.c{../msw/$D}.obj:
57 cl @<<
58$(CPPFLAGS2) /Fo$@ /c /Tc $<
59<<
60
61COMMONOBJS = \
62 ..\common\$D\y_tab.obj \
63 ..\common\$D\appcmn.obj \
e564aa15 64 ..\common\$D\clntdata.obj \
16ce3c2f
GT
65 ..\common\$D\cmdline.obj \
66 ..\common\$D\config.obj \
67 ..\common\$D\datetime.obj \
68 ..\common\$D\datstrm.obj \
69 ..\common\$D\db.obj \
70 ..\common\$D\dbtable.obj \
0cbff120 71 ..\common\$D\dircmn.obj \
16ce3c2f
GT
72 ..\common\$D\dynarray.obj \
73 ..\common\$D\dynlib.obj \
e564aa15 74 ..\common\$D\dynload.obj \
16ce3c2f
GT
75 ..\common\$D\encconv.obj \
76 ..\common\$D\event.obj \
77 ..\common\$D\extended.obj \
78 ..\common\$D\ffile.obj \
79 ..\common\$D\file.obj \
80 ..\common\$D\fileconf.obj \
81 ..\common\$D\filefn.obj \
82 ..\common\$D\filename.obj \
83 ..\common\$D\filesys.obj \
84 ..\common\$D\fontmap.obj \
85 ..\common\$D\fs_inet.obj \
86 ..\common\$D\fs_mem.obj \
87 ..\common\$D\fs_zip.obj \
88 ..\common\$D\ftp.obj \
89 ..\common\$D\hash.obj \
e564aa15 90 ..\common\$D\hashmap.obj \
16ce3c2f
GT
91 ..\common\$D\http.obj \
92 ..\common\$D\intl.obj \
93 ..\common\$D\ipcbase.obj \
94 ..\common\$D\list.obj \
95 ..\common\$D\log.obj \
96 ..\common\$D\longlong.obj \
97 ..\common\$D\memory.obj \
98 ..\common\$D\mimecmn.obj \
99 ..\common\$D\module.obj \
fb5230de 100 ..\common\$D\msgout.obj \
16ce3c2f
GT
101 ..\common\$D\mstream.obj \
102 ..\common\$D\object.obj \
16ce3c2f
GT
103 ..\common\$D\process.obj \
104 ..\common\$D\protocol.obj \
34a1d732 105 ..\common\$D\regex.obj \
16ce3c2f
GT
106 ..\common\$D\sckaddr.obj \
107 ..\common\$D\sckfile.obj \
108 ..\common\$D\sckipc.obj \
109 ..\common\$D\sckstrm.obj \
16ce3c2f
GT
110 ..\common\$D\socket.obj \
111 ..\common\$D\strconv.obj \
112 ..\common\$D\stream.obj \
113 ..\common\$D\string.obj \
0cbff120 114 ..\common\$D\sysopt.obj \
e564aa15 115 ..\common\$D\textbuf.obj \
16ce3c2f
GT
116 ..\common\$D\textfile.obj \
117 ..\common\$D\timercmn.obj \
118 ..\common\$D\tokenzr.obj \
119 ..\common\$D\txtstrm.obj \
120 ..\common\$D\unzip.obj \
121 ..\common\$D\url.obj \
122 ..\common\$D\utilscmn.obj \
123 ..\common\$D\variant.obj \
124 ..\common\$D\wfstream.obj \
125 ..\common\$D\wxchar.obj \
126 ..\common\$D\zipstrm.obj \
127 ..\common\$D\zstream.obj \
128 ..\common\$D\init.obj
129
130MSWOBJS = ..\msw\$D\dde.obj \
131 ..\msw\$D\dir.obj \
132 ..\msw\$D\gsocket.obj \
133 ..\msw\$D\gsockmsw.obj \
134 ..\msw\$D\main.obj \
135 ..\msw\$D\mimetype.obj \
136 ..\msw\$D\regconf.obj \
137 ..\msw\$D\registry.obj \
0cbff120 138 ..\msw\$D\snglinst.obj \
16ce3c2f
GT
139 ..\msw\$D\thread.obj \
140 ..\msw\$D\utils.obj \
e564aa15
JS
141 ..\msw\$D\utilsexc.obj \
142 ..\msw\$D\volume.obj
16ce3c2f
GT
143
144OBJECTS = $(COMMONOBJS) $(MSWOBJS)
145
fb5230de 146ARCHINCDIR=$(WXDIR)\lib\$(_WXINC_BUILD)$(_WXINC_DLLSUFFIX)$(_WXINC_SUFFIX)$(LIBEXT)
b311dc08
GT
147SETUP_H=$(ARCHINCDIR)\wx\setup.h
148
16ce3c2f 149# Normal, static library
b311dc08
GT
150#all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
151all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET)
152
fb5230de
MB
153$(ARCHINCDIR)\wx:
154 mkdir $(ARCHINCDIR)
155 mkdir $(ARCHINCDIR)\wx
156
b311dc08 157$(WXDIR)\include\wx\msw\setup.h:
16ce3c2f
GT
158 cd $(WXDIR)\include\wx\msw
159 if not exist setup.h copy setup0.h setup.h
160 cd $(WXDIR)\src\msw
161
b311dc08
GT
162$(SETUP_H): $(WXDIR)\include\wx\msw\setup.h
163 copy $(WXDIR)\include\wx\msw\setup.h $@
164
fb5230de 165dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(ARCHINCDIR)\wx $(WXDIR)\$D
16ce3c2f
GT
166
167$D:
168 mkdir $D
169
170$(COMMDIR)\$D:
171 mkdir $(COMMDIR)\$D
172
173$(MSWDIR)\$D:
174 mkdir $(MSWDIR)\$D
175
fb5230de
MB
176$(WXDIR)\$D:
177 mkdir $(WXDIR)\$D
178
16ce3c2f
GT
179### Static library
180
b311dc08 181$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
16ce3c2f
GT
182 -erase $(LIBTARGET)
183 $(implib) @<<
184-out:$@
185-machine:$(CPU)
b311dc08 186$(OBJECTS) $(DUMMYOBJ) $(PERIPH_LIBS)
16ce3c2f
GT
187<<
188
b311dc08
GT
189$(DUMMYOBJ): $(DUMMY).$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(SETUP_H)
190 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$(DUMMYOBJ) /c /Tp $(DUMMY).cpp
16ce3c2f
GT
191########################################################
192
193..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
194 cl @<<
195$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
196<<
197
198..\common\y_tab.c: ..\common\dosyacc.c
199 copy "..\common"\dosyacc.c "..\common"\y_tab.c
200
201..\common\lex_yy.c: ..\common\doslex.c
202 copy "..\common"\doslex.c "..\common"\lex_yy.c
203
fb5230de 204$(OBJECTS): $(SETUP_H)
16ce3c2f
GT
205
206..\common\$D\unzip.obj: ..\common\unzip.c
207 cl @<<
208$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
209<<
210
211png:
212 cd $(WXDIR)\src\png
213 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
214 cd $(WXDIR)\src\msw
215
216clean_png:
217 cd $(WXDIR)\src\png
218 nmake -f makefile.vc clean
219 cd $(WXDIR)\src\msw
220
221zlib:
222 cd $(WXDIR)\src\zlib
223 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
224 cd $(WXDIR)\src\msw
225
226clean_zlib:
227 cd $(WXDIR)\src\zlib
228 nmake -f makefile.vc clean
229 cd $(WXDIR)\src\msw
230
231jpeg:
232 cd $(WXDIR)\src\jpeg
233 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
234 cd $(WXDIR)\src\msw
235
236clean_jpeg:
237 cd $(WXDIR)\src\jpeg
238 nmake -f makefile.vc clean
239 cd $(WXDIR)\src\msw
240
241tiff:
242 cd $(WXDIR)\src\tiff
243 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
244 cd $(WXDIR)\src\msw
245
246clean_tiff:
247 cd $(WXDIR)\src\tiff
248 nmake -f makefile.vc clean
249 cd $(WXDIR)\src\msw
250
251xpm:
252 cd $(WXDIR)\src\xpm
253 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
254 cd $(WXDIR)\src\msw
255
256clean_xpm:
257 cd $(WXDIR)\src\xpm
258 nmake -f makefile.vc clean
259 cd $(WXDIR)\src\msw
260
261cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
262 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
263 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
264 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
265 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
266
267
268clean: $(PERIPH_CLEAN_TARGET)
269 -erase $(LIBTARGET)
270 -erase $(COMMDIR)\$D\*.obj
271 -erase $(COMMDIR)\$D\*.pdb
272 -erase $(COMMDIR)\$D\*.sbr
273 -erase $(COMMDIR)\$D\*.idb
274 -erase $(COMMDIR)\$D\*.pch
275 -erase $(COMMDIR)\y_tab.c
276 -erase $(COMMDIR)\lex_yy.c
277 -erase $(MSWDIR)\$D\*.idb
278 -erase $(MSWDIR)\$D\*.pdb
279 -erase $(MSWDIR)\$D\*.pch
280 -erase $(MSWDIR)\$D\*.obj
281 -erase $(MSWDIR)\$D\*.sbr
282 -erase $(MSWDIR)\$D\*.pdb
283 -rmdir $(D)
284 -rmdir ..\common\$(D)
285