]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makebase.vc
Copyright cleanup
[wxWidgets.git] / src / msw / makebase.vc
1 # This file was automatically generated by tmake
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\clntdata.obj \
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 \
71 ..\common\$D\dircmn.obj \
72 ..\common\$D\dynarray.obj \
73 ..\common\$D\dynlib.obj \
74 ..\common\$D\dynload.obj \
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 \
90 ..\common\$D\hashmap.obj \
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 \
100 ..\common\$D\msgout.obj \
101 ..\common\$D\mstream.obj \
102 ..\common\$D\object.obj \
103 ..\common\$D\process.obj \
104 ..\common\$D\protocol.obj \
105 ..\common\$D\regex.obj \
106 ..\common\$D\sckaddr.obj \
107 ..\common\$D\sckfile.obj \
108 ..\common\$D\sckipc.obj \
109 ..\common\$D\sckstrm.obj \
110 ..\common\$D\socket.obj \
111 ..\common\$D\strconv.obj \
112 ..\common\$D\stream.obj \
113 ..\common\$D\string.obj \
114 ..\common\$D\sysopt.obj \
115 ..\common\$D\textbuf.obj \
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
130 MSWOBJS = ..\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 \
138 ..\msw\$D\snglinst.obj \
139 ..\msw\$D\thread.obj \
140 ..\msw\$D\utils.obj \
141 ..\msw\$D\utilsexc.obj \
142 ..\msw\$D\volume.obj
143
144 OBJECTS = $(COMMONOBJS) $(MSWOBJS)
145
146 ARCHINCDIR=$(WXDIR)\lib\base$(INCEXT)
147 SETUP_H=$(ARCHINCDIR)\wx\setup.h
148
149 # Normal, static library
150 #all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
151 all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET)
152
153 $(WXDIR)\include\wx\msw\setup.h:
154 cd $(WXDIR)\include\wx\msw
155 if not exist setup.h copy setup0.h setup.h
156 cd $(WXDIR)\src\msw
157
158 $(SETUP_H): $(WXDIR)\include\wx\msw\setup.h
159 copy $(WXDIR)\include\wx\msw\setup.h $@
160
161 dirs: $(MSWDIR)\$D $(COMMDIR)\$D
162
163 $D:
164 mkdir $D
165
166 $(COMMDIR)\$D:
167 mkdir $(COMMDIR)\$D
168
169 $(MSWDIR)\$D:
170 mkdir $(MSWDIR)\$D
171
172 ### Static library
173
174 $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
175 -erase $(LIBTARGET)
176 $(implib) @<<
177 -out:$@
178 -machine:$(CPU)
179 $(OBJECTS) $(DUMMYOBJ) $(PERIPH_LIBS)
180 <<
181
182 $(DUMMYOBJ): $(DUMMY).$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(SETUP_H)
183 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$(DUMMYOBJ) /c /Tp $(DUMMY).cpp
184 ########################################################
185
186 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
187 cl @<<
188 $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
189 <<
190
191 ..\common\y_tab.c: ..\common\dosyacc.c
192 copy "..\common"\dosyacc.c "..\common"\y_tab.c
193
194 ..\common\lex_yy.c: ..\common\doslex.c
195 copy "..\common"\doslex.c "..\common"\lex_yy.c
196
197 $(OBJECTS): $(WXDIR)/include/wx/setup.h
198
199 ..\common\$D\unzip.obj: ..\common\unzip.c
200 cl @<<
201 $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
202 <<
203
204 png:
205 cd $(WXDIR)\src\png
206 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
207 cd $(WXDIR)\src\msw
208
209 clean_png:
210 cd $(WXDIR)\src\png
211 nmake -f makefile.vc clean
212 cd $(WXDIR)\src\msw
213
214 zlib:
215 cd $(WXDIR)\src\zlib
216 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
217 cd $(WXDIR)\src\msw
218
219 clean_zlib:
220 cd $(WXDIR)\src\zlib
221 nmake -f makefile.vc clean
222 cd $(WXDIR)\src\msw
223
224 jpeg:
225 cd $(WXDIR)\src\jpeg
226 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
227 cd $(WXDIR)\src\msw
228
229 clean_jpeg:
230 cd $(WXDIR)\src\jpeg
231 nmake -f makefile.vc clean
232 cd $(WXDIR)\src\msw
233
234 tiff:
235 cd $(WXDIR)\src\tiff
236 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
237 cd $(WXDIR)\src\msw
238
239 clean_tiff:
240 cd $(WXDIR)\src\tiff
241 nmake -f makefile.vc clean
242 cd $(WXDIR)\src\msw
243
244 xpm:
245 cd $(WXDIR)\src\xpm
246 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
247 cd $(WXDIR)\src\msw
248
249 clean_xpm:
250 cd $(WXDIR)\src\xpm
251 nmake -f makefile.vc clean
252 cd $(WXDIR)\src\msw
253
254 cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
255 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
256 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
257 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
258 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
259
260
261 clean: $(PERIPH_CLEAN_TARGET)
262 -erase $(LIBTARGET)
263 -erase $(COMMDIR)\$D\*.obj
264 -erase $(COMMDIR)\$D\*.pdb
265 -erase $(COMMDIR)\$D\*.sbr
266 -erase $(COMMDIR)\$D\*.idb
267 -erase $(COMMDIR)\$D\*.pch
268 -erase $(COMMDIR)\y_tab.c
269 -erase $(COMMDIR)\lex_yy.c
270 -erase $(MSWDIR)\$D\*.idb
271 -erase $(MSWDIR)\$D\*.pdb
272 -erase $(MSWDIR)\$D\*.pch
273 -erase $(MSWDIR)\$D\*.obj
274 -erase $(MSWDIR)\$D\*.sbr
275 -erase $(MSWDIR)\$D\*.pdb
276 -rmdir $(D)
277 -rmdir ..\common\$(D)
278