]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makebase.vc
There was no icon file in this example, causing compilation with VC to fail. I just...
[wxWidgets.git] / src / msw / makebase.vc
CommitLineData
16ce3c2f
GT
1# This file was automatically generated by tmake at 16:24, 2001/03/13
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)
26DUMMYOBJ=$D/dummy.obj
27
28# This one overrides the others, to be consistent with the settings in setup.h
29MINIMAL_WXWINDOWS_SETUP=0
30
31PERIPH_LIBS=
32PERIPH_TARGET=
33PERIPH_CLEAN_TARGET=
34
35# These are absolute paths, so that the compiler
36# generates correct __FILE__ symbols for debugging.
37# Otherwise you don't be able to double-click on a memory
38# error to load that file.
39COMMDIR=$(WXDIR)\src\common
40MSWDIR=$(WXDIR)\src\msw
41
42{../common}.cpp{../common/$D}.obj:
43 cl @<<
44$(CPPFLAGS) /Fo$@ /c /Tp $<
45<<
46
47{../common}.c{../common/$D}.obj:
48 cl @<<
49$(CPPFLAGS2) /Fo$@ /c /Tc $<
50<<
51
52{../msw}.cpp{../msw/$D}.obj:
53 cl @<<
54$(CPPFLAGS) /Fo$@ /c /Tp $<
55<<
56
57{../msw}.c{../msw/$D}.obj:
58 cl @<<
59$(CPPFLAGS2) /Fo$@ /c /Tc $<
60<<
61
62COMMONOBJS = \
63 ..\common\$D\y_tab.obj \
64 ..\common\$D\appcmn.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\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\sckaddr.obj \
103 ..\common\$D\sckfile.obj \
104 ..\common\$D\sckipc.obj \
105 ..\common\$D\sckstrm.obj \
106 ..\common\$D\serbase.obj \
107 ..\common\$D\socket.obj \
108 ..\common\$D\strconv.obj \
109 ..\common\$D\stream.obj \
110 ..\common\$D\string.obj \
111 ..\common\$D\textfile.obj \
112 ..\common\$D\timercmn.obj \
113 ..\common\$D\tokenzr.obj \
114 ..\common\$D\txtstrm.obj \
115 ..\common\$D\unzip.obj \
116 ..\common\$D\url.obj \
117 ..\common\$D\utilscmn.obj \
118 ..\common\$D\variant.obj \
119 ..\common\$D\wfstream.obj \
120 ..\common\$D\wxchar.obj \
121 ..\common\$D\zipstrm.obj \
122 ..\common\$D\zstream.obj \
123 ..\common\$D\init.obj
124
125MSWOBJS = ..\msw\$D\dde.obj \
126 ..\msw\$D\dir.obj \
127 ..\msw\$D\gsocket.obj \
128 ..\msw\$D\gsockmsw.obj \
129 ..\msw\$D\main.obj \
130 ..\msw\$D\mimetype.obj \
131 ..\msw\$D\regconf.obj \
132 ..\msw\$D\registry.obj \
133 ..\msw\$D\thread.obj \
134 ..\msw\$D\utils.obj \
135 ..\msw\$D\utilsexc.obj
136
137OBJECTS = $(COMMONOBJS) $(MSWOBJS)
138
139# Normal, static library
140#all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
141all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET)
142
143setuph:
144 cd $(WXDIR)\include\wx\msw
145 if not exist setup.h copy setup0.h setup.h
146 cd $(WXDIR)\src\msw
147
148dirs: $(MSWDIR)\$D $(COMMDIR)\$D
149
150$D:
151 mkdir $D
152
153$(COMMDIR)\$D:
154 mkdir $(COMMDIR)\$D
155
156$(MSWDIR)\$D:
157 mkdir $(MSWDIR)\$D
158
159### Static library
160
161$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS)
162 -erase $(LIBTARGET)
163 $(implib) @<<
164-out:$@
165-machine:$(CPU)
166$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
167<<
168
169$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
170 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
171########################################################
172
173..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
174 cl @<<
175$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
176<<
177
178..\common\y_tab.c: ..\common\dosyacc.c
179 copy "..\common"\dosyacc.c "..\common"\y_tab.c
180
181..\common\lex_yy.c: ..\common\doslex.c
182 copy "..\common"\doslex.c "..\common"\lex_yy.c
183
184$(OBJECTS): $(WXDIR)/include/wx/setup.h
185
186..\common\$D\unzip.obj: ..\common\unzip.c
187 cl @<<
188$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
189<<
190
191png:
192 cd $(WXDIR)\src\png
193 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
194 cd $(WXDIR)\src\msw
195
196clean_png:
197 cd $(WXDIR)\src\png
198 nmake -f makefile.vc clean
199 cd $(WXDIR)\src\msw
200
201zlib:
202 cd $(WXDIR)\src\zlib
203 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
204 cd $(WXDIR)\src\msw
205
206clean_zlib:
207 cd $(WXDIR)\src\zlib
208 nmake -f makefile.vc clean
209 cd $(WXDIR)\src\msw
210
211jpeg:
212 cd $(WXDIR)\src\jpeg
213 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
214 cd $(WXDIR)\src\msw
215
216clean_jpeg:
217 cd $(WXDIR)\src\jpeg
218 nmake -f makefile.vc clean
219 cd $(WXDIR)\src\msw
220
221tiff:
222 cd $(WXDIR)\src\tiff
223 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
224 cd $(WXDIR)\src\msw
225
226clean_tiff:
227 cd $(WXDIR)\src\tiff
228 nmake -f makefile.vc clean
229 cd $(WXDIR)\src\msw
230
231xpm:
232 cd $(WXDIR)\src\xpm
233 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
234 cd $(WXDIR)\src\msw
235
236clean_xpm:
237 cd $(WXDIR)\src\xpm
238 nmake -f makefile.vc clean
239 cd $(WXDIR)\src\msw
240
241cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
242 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
243 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
244 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
245 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
246
247
248clean: $(PERIPH_CLEAN_TARGET)
249 -erase $(LIBTARGET)
250 -erase $(COMMDIR)\$D\*.obj
251 -erase $(COMMDIR)\$D\*.pdb
252 -erase $(COMMDIR)\$D\*.sbr
253 -erase $(COMMDIR)\$D\*.idb
254 -erase $(COMMDIR)\$D\*.pch
255 -erase $(COMMDIR)\y_tab.c
256 -erase $(COMMDIR)\lex_yy.c
257 -erase $(MSWDIR)\$D\*.idb
258 -erase $(MSWDIR)\$D\*.pdb
259 -erase $(MSWDIR)\$D\*.pch
260 -erase $(MSWDIR)\$D\*.obj
261 -erase $(MSWDIR)\$D\*.sbr
262 -erase $(MSWDIR)\$D\*.pdb
263 -rmdir $(D)
264 -rmdir ..\common\$(D)
265