]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/deprecated/makefile.gcc
Cleaned up some comments, reorganized some code
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
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
15DEPRECATEDDLL_CFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
75a0a7b7 18 -I$(SETUPHDIR) -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \
187cf772 19 -DWXMAKINGDLL_DEPRECATED -I..\..\src\deprecated $(CFLAGS)
15e8daec
VS
20DEPRECATEDDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) \
21 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
75a0a7b7 23 -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) \
15e8daec 24 -I..\..\src\deprecated\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_DEPRECATED \
187cf772 25 -I..\..\src\deprecated $(CXXFLAGS)
15e8daec
VS
26DEPRECATEDDLL_OBJECTS = \
27 $(OBJS)\deprecateddll_dummy.o \
28 $(OBJS)\deprecateddll_prop.o \
29 $(OBJS)\deprecateddll_propform.o \
30 $(OBJS)\deprecateddll_proplist.o \
31 $(OBJS)\deprecateddll_resource.o \
8a82c9ec 32 $(OBJS)\deprecateddll_tbarsmpl.o \
15e8daec
VS
33 $(OBJS)\deprecateddll_treelay.o \
34 $(OBJS)\deprecateddll_wxexpr.o \
35 $(OBJS)\deprecateddll_dosyacc.o
36DEPRECATEDLIB_CFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
37 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
38 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
187cf772
VS
39 -I$(SETUPHDIR) -I..\..\src\deprecated\..\..\include -I..\..\src\deprecated \
40 $(CFLAGS)
15e8daec
VS
41DEPRECATEDLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) \
42 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
43 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
75a0a7b7 44 -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) \
187cf772 45 -I..\..\src\deprecated\..\..\include -I..\..\src\deprecated $(CXXFLAGS)
15e8daec
VS
46DEPRECATEDLIB_OBJECTS = \
47 $(OBJS)\deprecatedlib_dummy.o \
48 $(OBJS)\deprecatedlib_prop.o \
49 $(OBJS)\deprecatedlib_propform.o \
50 $(OBJS)\deprecatedlib_proplist.o \
51 $(OBJS)\deprecatedlib_resource.o \
8a82c9ec 52 $(OBJS)\deprecatedlib_tbarsmpl.o \
15e8daec
VS
53 $(OBJS)\deprecatedlib_treelay.o \
54 $(OBJS)\deprecatedlib_wxexpr.o \
55 $(OBJS)\deprecatedlib_dosyacc.o
15e8daec
VS
56OBJS = \
57 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
58SETUPHDIR = \
59 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
15e8daec
VS
60
61### Conditionally set variables: ###
62
63ifeq ($(GCC_VERSION),2.95)
64GCCFLAGS = -fvtable-thunks
65endif
75a0a7b7
VS
66ifeq ($(SHARED),0)
67LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_lib$(CFG)
68endif
69ifeq ($(SHARED),1)
70LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_dll$(CFG)
71endif
15e8daec
VS
72ifeq ($(USE_GUI),0)
73PORTNAME = base
74endif
75ifeq ($(USE_GUI),1)
76PORTNAME = msw
77endif
78ifeq ($(OFFICIAL_BUILD),0)
79VENDORTAG = _$(VENDOR)
80endif
81ifeq ($(OFFICIAL_BUILD),1)
82VENDORTAG =
83endif
84ifeq ($(BUILD),debug)
85ifeq ($(DEBUG_FLAG),default)
86WXDEBUGFLAG = d
87endif
88endif
89ifeq ($(DEBUG_FLAG),1)
90WXDEBUGFLAG = d
91endif
92ifeq ($(SHARED),1)
93WXDLLFLAG = dll
94endif
95ifeq ($(UNICODE),1)
96WXUNICODEFLAG = u
97endif
98ifeq ($(WXUNIV),1)
99WXUNIVNAME = univ
100endif
101ifeq ($(BUILD),debug)
102ifeq ($(DEBUG_INFO),default)
103__DEBUGINFO = -g
104endif
105endif
106ifeq ($(BUILD),release)
107ifeq ($(DEBUG_INFO),default)
108__DEBUGINFO =
109endif
110endif
111ifeq ($(DEBUG_INFO),0)
112__DEBUGINFO =
113endif
114ifeq ($(DEBUG_INFO),1)
115__DEBUGINFO = -g
116endif
117ifeq ($(BUILD),debug)
118ifeq ($(DEBUG_FLAG),default)
119__DEBUG_DEFINE_p = -D__WXDEBUG__
120endif
121endif
122ifeq ($(DEBUG_FLAG),1)
123__DEBUG_DEFINE_p = -D__WXDEBUG__
124endif
125ifeq ($(USE_GUI),1)
126__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
127endif
128ifeq ($(USE_GUI),1)
129__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
130endif
131ifeq ($(USE_GUI),1)
132__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
133endif
134ifeq ($(BUILD),debug)
135__OPTIMIZEFLAG = -O0
136endif
137ifeq ($(BUILD),release)
138__OPTIMIZEFLAG = -O2
139endif
140ifeq ($(UNICODE),1)
141__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
142endif
2265a2d5
VS
143ifeq ($(MSLU),1)
144__UNICOWS_LIB_p = -lunicows
145endif
15e8daec
VS
146ifeq ($(MONOLITHIC),0)
147__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
148endif
149ifeq ($(MONOLITHIC),0)
150__WXLIB_CORE_p = \
151 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
152endif
153ifeq ($(MONOLITHIC),1)
154__WXLIB_MONO_p = \
155 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
156endif
157ifeq ($(WXUNIV),1)
158__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
159endif
160ifeq ($(SHARED),1)
161__deprecateddll___depname = \
162 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll
163endif
164ifeq ($(SHARED),0)
165__deprecatedlib___depname = \
166 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a
167endif
168
169
170all: $(OBJS)
171$(OBJS):
172 -if not exist $(OBJS) mkdir $(OBJS)
173
174### Targets: ###
175
176all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
177
1c3a6972 178$(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c
15e8daec
VS
179 $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $<
180
1c3a6972 181$(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
15e8daec
VS
182 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
183
1c3a6972 184$(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp
15e8daec
VS
185 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
186
1c3a6972 187$(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp
15e8daec
VS
188 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
189
1c3a6972 190$(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp
15e8daec
VS
191 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
192
1c3a6972 193$(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp
15e8daec
VS
194 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
195
1c3a6972 196$(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
8a82c9ec
JS
197 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
198
1c3a6972 199$(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp
15e8daec
VS
200 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
201
1c3a6972 202$(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp
15e8daec
VS
203 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
204
1c3a6972 205$(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c
15e8daec
VS
206 $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $<
207
1c3a6972 208$(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
15e8daec
VS
209 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
210
1c3a6972 211$(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp
15e8daec
VS
212 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
213
1c3a6972 214$(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp
15e8daec
VS
215 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
216
1c3a6972 217$(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp
15e8daec
VS
218 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
219
1c3a6972 220$(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp
15e8daec
VS
221 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
222
1c3a6972 223$(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
8a82c9ec
JS
224 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
225
1c3a6972 226$(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp
15e8daec
VS
227 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
228
1c3a6972 229$(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp
15e8daec
VS
230 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
231
232clean:
233 -if exist $(OBJS)\*.o del $(OBJS)\*.o
234 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll
235 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a
236 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a
237
238ifeq ($(SHARED),1)
239$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS)
2265a2d5 240 $(CXX) -shared -o $@ $(DEPRECATEDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
15e8daec
VS
241endif
242
243ifeq ($(SHARED),0)
244$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a: $(DEPRECATEDLIB_OBJECTS)
245 if exist $@ del $@
246 ar rcu $@ $(DEPRECATEDLIB_OBJECTS)
247 ranlib $@
248endif
249
250.PHONY: all clean