]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makebase.vc
don't declare inline function with dllexport declaration, this provokes mingw32 warni...
[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 = \
16ce3c2f 62 ..\common\$D\appcmn.obj \
e564aa15 63 ..\common\$D\clntdata.obj \
16ce3c2f
GT
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 \
0cbff120 70 ..\common\$D\dircmn.obj \
16ce3c2f
GT
71 ..\common\$D\dynarray.obj \
72 ..\common\$D\dynlib.obj \
e564aa15 73 ..\common\$D\dynload.obj \
16ce3c2f
GT
74 ..\common\$D\encconv.obj \
75 ..\common\$D\event.obj \
76 ..\common\$D\extended.obj \
77 ..\common\$D\ffile.obj \
78 ..\common\$D\file.obj \
79 ..\common\$D\fileconf.obj \
80 ..\common\$D\filefn.obj \
81 ..\common\$D\filename.obj \
82 ..\common\$D\filesys.obj \
83 ..\common\$D\fontmap.obj \
84 ..\common\$D\fs_inet.obj \
85 ..\common\$D\fs_mem.obj \
86 ..\common\$D\fs_zip.obj \
87 ..\common\$D\ftp.obj \
88 ..\common\$D\hash.obj \
e564aa15 89 ..\common\$D\hashmap.obj \
16ce3c2f
GT
90 ..\common\$D\http.obj \
91 ..\common\$D\intl.obj \
92 ..\common\$D\ipcbase.obj \
93 ..\common\$D\list.obj \
94 ..\common\$D\log.obj \
95 ..\common\$D\longlong.obj \
96 ..\common\$D\memory.obj \
97 ..\common\$D\mimecmn.obj \
98 ..\common\$D\module.obj \
fb5230de 99 ..\common\$D\msgout.obj \
16ce3c2f
GT
100 ..\common\$D\mstream.obj \
101 ..\common\$D\object.obj \
16ce3c2f
GT
102 ..\common\$D\process.obj \
103 ..\common\$D\protocol.obj \
34a1d732 104 ..\common\$D\regex.obj \
16ce3c2f
GT
105 ..\common\$D\sckaddr.obj \
106 ..\common\$D\sckfile.obj \
107 ..\common\$D\sckipc.obj \
108 ..\common\$D\sckstrm.obj \
16ce3c2f
GT
109 ..\common\$D\socket.obj \
110 ..\common\$D\strconv.obj \
111 ..\common\$D\stream.obj \
112 ..\common\$D\string.obj \
0cbff120 113 ..\common\$D\sysopt.obj \
e564aa15 114 ..\common\$D\textbuf.obj \
16ce3c2f
GT
115 ..\common\$D\textfile.obj \
116 ..\common\$D\timercmn.obj \
117 ..\common\$D\tokenzr.obj \
118 ..\common\$D\txtstrm.obj \
119 ..\common\$D\unzip.obj \
120 ..\common\$D\url.obj \
121 ..\common\$D\utilscmn.obj \
122 ..\common\$D\variant.obj \
123 ..\common\$D\wfstream.obj \
124 ..\common\$D\wxchar.obj \
125 ..\common\$D\zipstrm.obj \
126 ..\common\$D\zstream.obj \
127 ..\common\$D\init.obj
128
129MSWOBJS = ..\msw\$D\dde.obj \
130 ..\msw\$D\dir.obj \
131 ..\msw\$D\gsocket.obj \
132 ..\msw\$D\gsockmsw.obj \
133 ..\msw\$D\main.obj \
134 ..\msw\$D\mimetype.obj \
135 ..\msw\$D\regconf.obj \
136 ..\msw\$D\registry.obj \
0cbff120 137 ..\msw\$D\snglinst.obj \
16ce3c2f
GT
138 ..\msw\$D\thread.obj \
139 ..\msw\$D\utils.obj \
e564aa15
JS
140 ..\msw\$D\utilsexc.obj \
141 ..\msw\$D\volume.obj
16ce3c2f
GT
142
143OBJECTS = $(COMMONOBJS) $(MSWOBJS)
144
0b2e45b1 145ARCHINCDIR=$(WXDIR)\lib\base$(INCEXT)
b311dc08
GT
146SETUP_H=$(ARCHINCDIR)\wx\setup.h
147
16ce3c2f 148# Normal, static library
b311dc08
GT
149#all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
150all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET)
151
b311dc08 152$(WXDIR)\include\wx\msw\setup.h:
16ce3c2f
GT
153 cd $(WXDIR)\include\wx\msw
154 if not exist setup.h copy setup0.h setup.h
155 cd $(WXDIR)\src\msw
156
b311dc08
GT
157$(SETUP_H): $(WXDIR)\include\wx\msw\setup.h
158 copy $(WXDIR)\include\wx\msw\setup.h $@
159
0b2e45b1 160dirs: $(MSWDIR)\$D $(COMMDIR)\$D
16ce3c2f
GT
161
162$D:
163 mkdir $D
164
165$(COMMDIR)\$D:
166 mkdir $(COMMDIR)\$D
167
168$(MSWDIR)\$D:
169 mkdir $(MSWDIR)\$D
170
171### Static library
172
b311dc08 173$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
16ce3c2f
GT
174 -erase $(LIBTARGET)
175 $(implib) @<<
176-out:$@
177-machine:$(CPU)
b311dc08 178$(OBJECTS) $(DUMMYOBJ) $(PERIPH_LIBS)
16ce3c2f
GT
179<<
180
b311dc08
GT
181$(DUMMYOBJ): $(DUMMY).$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(SETUP_H)
182 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$(DUMMYOBJ) /c /Tp $(DUMMY).cpp
16ce3c2f
GT
183########################################################
184
0b2e45b1 185$(OBJECTS): $(WXDIR)/include/wx/setup.h
16ce3c2f
GT
186
187..\common\$D\unzip.obj: ..\common\unzip.c
188 cl @<<
189$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
190<<
191
192png:
193 cd $(WXDIR)\src\png
194 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
195 cd $(WXDIR)\src\msw
196
197clean_png:
198 cd $(WXDIR)\src\png
199 nmake -f makefile.vc clean
200 cd $(WXDIR)\src\msw
201
202zlib:
203 cd $(WXDIR)\src\zlib
204 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
205 cd $(WXDIR)\src\msw
206
207clean_zlib:
208 cd $(WXDIR)\src\zlib
209 nmake -f makefile.vc clean
210 cd $(WXDIR)\src\msw
211
212jpeg:
213 cd $(WXDIR)\src\jpeg
214 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
215 cd $(WXDIR)\src\msw
216
217clean_jpeg:
218 cd $(WXDIR)\src\jpeg
219 nmake -f makefile.vc clean
220 cd $(WXDIR)\src\msw
221
222tiff:
223 cd $(WXDIR)\src\tiff
224 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
225 cd $(WXDIR)\src\msw
226
227clean_tiff:
228 cd $(WXDIR)\src\tiff
229 nmake -f makefile.vc clean
230 cd $(WXDIR)\src\msw
231
232xpm:
233 cd $(WXDIR)\src\xpm
234 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
235 cd $(WXDIR)\src\msw
236
237clean_xpm:
238 cd $(WXDIR)\src\xpm
239 nmake -f makefile.vc clean
240 cd $(WXDIR)\src\msw
241
242cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
243 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
244 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
245 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
246 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
247
248
249clean: $(PERIPH_CLEAN_TARGET)
250 -erase $(LIBTARGET)
251 -erase $(COMMDIR)\$D\*.obj
252 -erase $(COMMDIR)\$D\*.pdb
253 -erase $(COMMDIR)\$D\*.sbr
254 -erase $(COMMDIR)\$D\*.idb
255 -erase $(COMMDIR)\$D\*.pch
16ce3c2f
GT
256 -erase $(MSWDIR)\$D\*.idb
257 -erase $(MSWDIR)\$D\*.pdb
258 -erase $(MSWDIR)\$D\*.pch
259 -erase $(MSWDIR)\$D\*.obj
260 -erase $(MSWDIR)\$D\*.sbr
261 -erase $(MSWDIR)\$D\*.pdb
262 -rmdir $(D)
263 -rmdir ..\common\$(D)
264