]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/deprecated/makefile.gcc
updated the script to deal with licensing information added to wx/setup_inc.h
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (http://bakefile.sourceforge.net)
15e8daec
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
15e8daec
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4818141b 16WX_RELEASE_NODOT = 26
b17c1746
DE
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22DEPRECATEDDLL_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
26 -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) -W -Wall \
27 -I..\..\src\deprecated\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_DEPRECATED \
28 -I..\..\src\deprecated $(CPPFLAGS) $(CFLAGS)
29DEPRECATEDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
30 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
31 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
32 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
33 -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) -W -Wall \
34 -I..\..\src\deprecated\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_DEPRECATED \
35 -I..\..\src\deprecated $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
36 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
37DEPRECATEDDLL_OBJECTS = \
38 $(OBJS)\deprecateddll_dummy.o \
8c9f8f91 39 $(OBJS)\deprecateddll_version_rc.o \
15e8daec
VS
40 $(OBJS)\deprecateddll_prop.o \
41 $(OBJS)\deprecateddll_propform.o \
42 $(OBJS)\deprecateddll_proplist.o \
43 $(OBJS)\deprecateddll_resource.o \
8a82c9ec 44 $(OBJS)\deprecateddll_tbarsmpl.o \
15e8daec
VS
45 $(OBJS)\deprecateddll_treelay.o \
46 $(OBJS)\deprecateddll_wxexpr.o \
47 $(OBJS)\deprecateddll_dosyacc.o
8c9f8f91
JS
48DEPRECATEDLIB_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
49 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
50 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
51 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
52 -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) -W -Wall \
53 -I..\..\src\deprecated\..\..\include -I..\..\src\deprecated $(CPPFLAGS) \
54 $(CFLAGS)
55DEPRECATEDLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
56 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
57 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
58 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
59 -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) -W -Wall \
60 -I..\..\src\deprecated\..\..\include -I..\..\src\deprecated $(__RTTIFLAG) \
61 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
62DEPRECATEDLIB_OBJECTS = \
63 $(OBJS)\deprecatedlib_dummy.o \
64 $(OBJS)\deprecatedlib_prop.o \
65 $(OBJS)\deprecatedlib_propform.o \
66 $(OBJS)\deprecatedlib_proplist.o \
67 $(OBJS)\deprecatedlib_resource.o \
8a82c9ec 68 $(OBJS)\deprecatedlib_tbarsmpl.o \
15e8daec
VS
69 $(OBJS)\deprecatedlib_treelay.o \
70 $(OBJS)\deprecatedlib_wxexpr.o \
71 $(OBJS)\deprecatedlib_dosyacc.o
15e8daec
VS
72
73### Conditionally set variables: ###
74
75ifeq ($(GCC_VERSION),2.95)
76GCCFLAGS = -fvtable-thunks
77endif
78ifeq ($(USE_GUI),0)
79PORTNAME = base
80endif
81ifeq ($(USE_GUI),1)
82PORTNAME = msw
83endif
84ifeq ($(OFFICIAL_BUILD),0)
85VENDORTAG = _$(VENDOR)
86endif
87ifeq ($(OFFICIAL_BUILD),1)
88VENDORTAG =
89endif
90ifeq ($(BUILD),debug)
91ifeq ($(DEBUG_FLAG),default)
92WXDEBUGFLAG = d
93endif
94endif
95ifeq ($(DEBUG_FLAG),1)
96WXDEBUGFLAG = d
97endif
15e8daec
VS
98ifeq ($(UNICODE),1)
99WXUNICODEFLAG = u
100endif
101ifeq ($(WXUNIV),1)
102WXUNIVNAME = univ
103endif
b17c1746
DE
104ifeq ($(SHARED),1)
105WXDLLFLAG = dll
106endif
b14abf14
JS
107ifeq ($(SHARED),0)
108LIBTYPE_SUFFIX = lib
109endif
110ifeq ($(SHARED),1)
111LIBTYPE_SUFFIX = dll
112endif
dd65d8c8
RN
113ifeq ($(MONOLITHIC),0)
114EXTRALIBS_FOR_BASE =
115endif
116ifeq ($(MONOLITHIC),1)
117EXTRALIBS_FOR_BASE =
118endif
b17c1746
DE
119ifeq ($(SHARED),1)
120__deprecateddll___depname = \
4818141b 121 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll
b17c1746 122endif
8c9f8f91
JS
123ifeq ($(WXUNIV),1)
124__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
125endif
126ifeq ($(BUILD),debug)
127ifeq ($(DEBUG_FLAG),default)
128__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
129endif
130endif
131ifeq ($(DEBUG_FLAG),1)
132__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
133endif
134ifeq ($(USE_EXCEPTIONS),0)
135__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
136endif
137ifeq ($(USE_RTTI),0)
138__RTTI_DEFINE_p_1 = --define wxNO_RTTI
139endif
140ifeq ($(USE_THREADS),0)
141__THREAD_DEFINE_p_1 = --define wxNO_THREADS
142endif
143ifeq ($(UNICODE),1)
144__UNICODE_DEFINE_p_1 = --define _UNICODE
145endif
b17c1746
DE
146ifeq ($(MONOLITHIC),1)
147__WXLIB_MONO_p = \
c33fae85 148 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
149endif
150ifeq ($(USE_GUI),1)
9c2d002b 151__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
152endif
153ifeq ($(USE_GUI),1)
9c2d002b 154__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
155endif
156ifeq ($(USE_GUI),1)
9c2d002b 157__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
158endif
159ifeq ($(MSLU),1)
160__UNICOWS_LIB_p = -lunicows
161endif
162ifeq ($(MONOLITHIC),0)
163__WXLIB_CORE_p = \
c33fae85 164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
165endif
166ifeq ($(MONOLITHIC),0)
c33fae85
RN
167__WXLIB_BASE_p = \
168 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
169endif
170ifeq ($(SHARED),0)
171__deprecatedlib___depname = \
c33fae85 172 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a
b17c1746 173endif
15e8daec
VS
174ifeq ($(BUILD),debug)
175ifeq ($(DEBUG_INFO),default)
176__DEBUGINFO = -g
177endif
178endif
179ifeq ($(BUILD),release)
180ifeq ($(DEBUG_INFO),default)
181__DEBUGINFO =
182endif
183endif
184ifeq ($(DEBUG_INFO),0)
185__DEBUGINFO =
186endif
187ifeq ($(DEBUG_INFO),1)
188__DEBUGINFO = -g
189endif
190ifeq ($(BUILD),debug)
b17c1746 191__OPTIMIZEFLAG = -O0
15e8daec 192endif
b17c1746
DE
193ifeq ($(BUILD),release)
194__OPTIMIZEFLAG = -O2
15e8daec 195endif
8c9f8f91
JS
196ifeq ($(USE_THREADS),0)
197__THREADSFLAG =
a4ad36cd 198endif
8c9f8f91
JS
199ifeq ($(USE_THREADS),1)
200__THREADSFLAG = -mthreads
201endif
202ifeq ($(USE_RTTI),0)
203__RTTIFLAG = -fno-rtti
204endif
205ifeq ($(USE_RTTI),1)
206__RTTIFLAG =
a4ad36cd
VS
207endif
208ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 209__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
210endif
211ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 212__EXCEPTIONSFLAG =
a4ad36cd 213endif
b17c1746
DE
214ifeq ($(WXUNIV),1)
215__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec
VS
216endif
217ifeq ($(BUILD),debug)
b17c1746
DE
218ifeq ($(DEBUG_FLAG),default)
219__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 220endif
b17c1746
DE
221endif
222ifeq ($(DEBUG_FLAG),1)
223__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 224endif
8c9f8f91
JS
225ifeq ($(USE_EXCEPTIONS),0)
226__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
227endif
228ifeq ($(USE_RTTI),0)
229__RTTI_DEFINE_p = -DwxNO_RTTI
230endif
231ifeq ($(USE_THREADS),0)
232__THREAD_DEFINE_p = -DwxNO_THREADS
233endif
15e8daec 234ifeq ($(UNICODE),1)
ec08d395 235__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 236endif
15e8daec
VS
237
238
239all: $(OBJS)
240$(OBJS):
241 -if not exist $(OBJS) mkdir $(OBJS)
242
243### Targets: ###
244
245all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
246
b17c1746
DE
247clean:
248 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 249 -if exist $(OBJS)\*.d del $(OBJS)\*.d
4818141b 250 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll
c33fae85
RN
251 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a
252 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a
b17c1746
DE
253
254ifeq ($(SHARED),1)
4818141b 255$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS) $(OBJS)\deprecateddll_version_rc.o
8c9f8f91 256 $(CXX) -shared -fPIC -o $@ $(DEPRECATEDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
b17c1746
DE
257endif
258
259ifeq ($(SHARED),0)
c33fae85 260$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a: $(DEPRECATEDLIB_OBJECTS)
b17c1746
DE
261 if exist $@ del $@
262 ar rcu $@ $(DEPRECATEDLIB_OBJECTS)
263 ranlib $@
264endif
15e8daec 265
1c3a6972 266$(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
0d90d6ea 267 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 268
102d46f3 269$(OBJS)\deprecateddll_version_rc.o: ../../src/deprecated/../../../src/msw/version.rc
4818141b 270 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ../../src/deprecated/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG)
8c9f8f91 271
1c3a6972 272$(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp
0d90d6ea 273 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 274
1c3a6972 275$(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp
0d90d6ea 276 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 277
1c3a6972 278$(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp
0d90d6ea 279 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 280
1c3a6972 281$(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp
0d90d6ea 282 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 283
1c3a6972 284$(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
0d90d6ea 285 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
8a82c9ec 286
1c3a6972 287$(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp
0d90d6ea 288 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 289
1c3a6972 290$(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp
0d90d6ea 291 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 292
b17c1746 293$(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c
0d90d6ea 294 $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $(CPPDEPS) $<
15e8daec 295
1c3a6972 296$(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
0d90d6ea 297 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 298
1c3a6972 299$(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp
0d90d6ea 300 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 301
1c3a6972 302$(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp
0d90d6ea 303 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 304
1c3a6972 305$(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp
0d90d6ea 306 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 307
1c3a6972 308$(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp
0d90d6ea 309 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 310
1c3a6972 311$(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
0d90d6ea 312 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
8a82c9ec 313
1c3a6972 314$(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp
0d90d6ea 315 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 316
1c3a6972 317$(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp
0d90d6ea 318 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 319
b17c1746 320$(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c
0d90d6ea 321 $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $(CPPDEPS) $<
15e8daec
VS
322
323.PHONY: all clean
b14abf14 324
8c9f8f91 325
0d90d6ea
JS
326# Dependencies tracking:
327-include $(OBJS)/*.d