]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makebase.vc
compilation fix
[wxWidgets.git] / src / msw / makebase.vc
1 # This file was automatically generated by tmake at 10:56, 2001/11/03
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 #
20 wxUSE_GUI = 0
21 !include <../makevc.env>
22
23 THISDIR=$(WXWIN)\src\msw
24
25 LIBTARGET=$(WXLIB)
26
27 # This one overrides the others, to be consistent with the settings in setup.h
28 MINIMAL_WXWINDOWS_SETUP=0
29
30 PERIPH_LIBS=
31 PERIPH_TARGET=
32 PERIPH_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.
38 COMMDIR=$(WXDIR)\src\common
39 MSWDIR=$(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
61 COMMONOBJS = \
62 ..\common\$D\y_tab.obj \
63 ..\common\$D\appcmn.obj \
64 ..\common\$D\cmdline.obj \
65 ..\common\$D\config.obj \
66 ..\common\$D\datetime.obj \
67 ..\common\$D\datstrm.obj \
68 ..\common\$D\db.obj \
69 ..\common\$D\dbtable.obj \
70 ..\common\$D\dircmn.obj \
71 ..\common\$D\dynarray.obj \
72 ..\common\$D\dynlib.obj \
73 ..\common\$D\encconv.obj \
74 ..\common\$D\event.obj \
75 ..\common\$D\extended.obj \
76 ..\common\$D\ffile.obj \
77 ..\common\$D\file.obj \
78 ..\common\$D\fileconf.obj \
79 ..\common\$D\filefn.obj \
80 ..\common\$D\filename.obj \
81 ..\common\$D\filesys.obj \
82 ..\common\$D\fontmap.obj \
83 ..\common\$D\fs_inet.obj \
84 ..\common\$D\fs_mem.obj \
85 ..\common\$D\fs_zip.obj \
86 ..\common\$D\ftp.obj \
87 ..\common\$D\hash.obj \
88 ..\common\$D\http.obj \
89 ..\common\$D\intl.obj \
90 ..\common\$D\ipcbase.obj \
91 ..\common\$D\list.obj \
92 ..\common\$D\log.obj \
93 ..\common\$D\longlong.obj \
94 ..\common\$D\memory.obj \
95 ..\common\$D\mimecmn.obj \
96 ..\common\$D\module.obj \
97 ..\common\$D\mstream.obj \
98 ..\common\$D\object.obj \
99 ..\common\$D\objstrm.obj \
100 ..\common\$D\process.obj \
101 ..\common\$D\protocol.obj \
102 ..\common\$D\regex.obj \
103 ..\common\$D\sckaddr.obj \
104 ..\common\$D\sckfile.obj \
105 ..\common\$D\sckipc.obj \
106 ..\common\$D\sckstrm.obj \
107 ..\common\$D\serbase.obj \
108 ..\common\$D\socket.obj \
109 ..\common\$D\strconv.obj \
110 ..\common\$D\stream.obj \
111 ..\common\$D\string.obj \
112 ..\common\$D\sysopt.obj \
113 ..\common\$D\textfile.obj \
114 ..\common\$D\timercmn.obj \
115 ..\common\$D\tokenzr.obj \
116 ..\common\$D\txtstrm.obj \
117 ..\common\$D\unzip.obj \
118 ..\common\$D\url.obj \
119 ..\common\$D\utilscmn.obj \
120 ..\common\$D\variant.obj \
121 ..\common\$D\wfstream.obj \
122 ..\common\$D\wxchar.obj \
123 ..\common\$D\zipstrm.obj \
124 ..\common\$D\zstream.obj \
125 ..\common\$D\init.obj
126
127 MSWOBJS = ..\msw\$D\dde.obj \
128 ..\msw\$D\dir.obj \
129 ..\msw\$D\gsocket.obj \
130 ..\msw\$D\gsockmsw.obj \
131 ..\msw\$D\main.obj \
132 ..\msw\$D\mimetype.obj \
133 ..\msw\$D\regconf.obj \
134 ..\msw\$D\registry.obj \
135 ..\msw\$D\snglinst.obj \
136 ..\msw\$D\thread.obj \
137 ..\msw\$D\utils.obj \
138 ..\msw\$D\utilsexc.obj
139
140 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
141
142 ARCHINCDIR=$(WXDIR)\lib\base$(INCEXT)
143 SETUP_H=$(ARCHINCDIR)\wx\setup.h
144
145 # Normal, static library
146 #all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
147 all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET)
148
149
150 $(WXDIR)\include\wx\msw\setup.h:
151 cd $(WXDIR)\include\wx\msw
152 if not exist setup.h copy setup0.h setup.h
153 cd $(WXDIR)\src\msw
154
155 $(SETUP_H): $(WXDIR)\include\wx\msw\setup.h
156 copy $(WXDIR)\include\wx\msw\setup.h $@
157
158 dirs: $(MSWDIR)\$D $(COMMDIR)\$D
159
160 $D:
161 mkdir $D
162
163 $(COMMDIR)\$D:
164 mkdir $(COMMDIR)\$D
165
166 $(MSWDIR)\$D:
167 mkdir $(MSWDIR)\$D
168
169 ### Static library
170
171 $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
172 -erase $(LIBTARGET)
173 $(implib) @<<
174 -out:$@
175 -machine:$(CPU)
176 $(OBJECTS) $(DUMMYOBJ) $(PERIPH_LIBS)
177 <<
178
179 $(DUMMYOBJ): $(DUMMY).$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(SETUP_H)
180 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$(DUMMYOBJ) /c /Tp $(DUMMY).cpp
181 ########################################################
182
183 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
184 cl @<<
185 $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
186 <<
187
188 ..\common\y_tab.c: ..\common\dosyacc.c
189 copy "..\common"\dosyacc.c "..\common"\y_tab.c
190
191 ..\common\lex_yy.c: ..\common\doslex.c
192 copy "..\common"\doslex.c "..\common"\lex_yy.c
193
194 $(OBJECTS): $(SETUP_H)
195
196 ..\common\$D\unzip.obj: ..\common\unzip.c
197 cl @<<
198 $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
199 <<
200
201 png:
202 cd $(WXDIR)\src\png
203 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
204 cd $(WXDIR)\src\msw
205
206 clean_png:
207 cd $(WXDIR)\src\png
208 nmake -f makefile.vc clean
209 cd $(WXDIR)\src\msw
210
211 zlib:
212 cd $(WXDIR)\src\zlib
213 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
214 cd $(WXDIR)\src\msw
215
216 clean_zlib:
217 cd $(WXDIR)\src\zlib
218 nmake -f makefile.vc clean
219 cd $(WXDIR)\src\msw
220
221 jpeg:
222 cd $(WXDIR)\src\jpeg
223 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
224 cd $(WXDIR)\src\msw
225
226 clean_jpeg:
227 cd $(WXDIR)\src\jpeg
228 nmake -f makefile.vc clean
229 cd $(WXDIR)\src\msw
230
231 tiff:
232 cd $(WXDIR)\src\tiff
233 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
234 cd $(WXDIR)\src\msw
235
236 clean_tiff:
237 cd $(WXDIR)\src\tiff
238 nmake -f makefile.vc clean
239 cd $(WXDIR)\src\msw
240
241 xpm:
242 cd $(WXDIR)\src\xpm
243 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
244 cd $(WXDIR)\src\msw
245
246 clean_xpm:
247 cd $(WXDIR)\src\xpm
248 nmake -f makefile.vc clean
249 cd $(WXDIR)\src\msw
250
251 cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
252 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
253 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
254 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
255 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
256
257
258 clean: $(PERIPH_CLEAN_TARGET)
259 -erase $(LIBTARGET)
260 -erase $(COMMDIR)\$D\*.obj
261 -erase $(COMMDIR)\$D\*.pdb
262 -erase $(COMMDIR)\$D\*.sbr
263 -erase $(COMMDIR)\$D\*.idb
264 -erase $(COMMDIR)\$D\*.pch
265 -erase $(COMMDIR)\y_tab.c
266 -erase $(COMMDIR)\lex_yy.c
267 -erase $(MSWDIR)\$D\*.idb
268 -erase $(MSWDIR)\$D\*.pdb
269 -erase $(MSWDIR)\$D\*.pch
270 -erase $(MSWDIR)\$D\*.obj
271 -erase $(MSWDIR)\$D\*.sbr
272 -erase $(MSWDIR)\$D\*.pdb
273 -rmdir $(D)
274 -rmdir ..\common\$(D)
275