]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/deprecated/makefile.gcc
Cleaned up some comments, reorganized some code
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
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
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 DEPRECATEDDLL_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 \
18 -I$(SETUPHDIR) -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \
19 -DWXMAKINGDLL_DEPRECATED -I..\..\src\deprecated $(CFLAGS)
20 DEPRECATEDDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) \
21 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) \
24 -I..\..\src\deprecated\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_DEPRECATED \
25 -I..\..\src\deprecated $(CXXFLAGS)
26 DEPRECATEDDLL_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 \
32 $(OBJS)\deprecateddll_tbarsmpl.o \
33 $(OBJS)\deprecateddll_treelay.o \
34 $(OBJS)\deprecateddll_wxexpr.o \
35 $(OBJS)\deprecateddll_dosyacc.o
36 DEPRECATEDLIB_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 \
39 -I$(SETUPHDIR) -I..\..\src\deprecated\..\..\include -I..\..\src\deprecated \
40 $(CFLAGS)
41 DEPRECATEDLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) \
42 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
43 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
44 -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) \
45 -I..\..\src\deprecated\..\..\include -I..\..\src\deprecated $(CXXFLAGS)
46 DEPRECATEDLIB_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 \
52 $(OBJS)\deprecatedlib_tbarsmpl.o \
53 $(OBJS)\deprecatedlib_treelay.o \
54 $(OBJS)\deprecatedlib_wxexpr.o \
55 $(OBJS)\deprecatedlib_dosyacc.o
56 OBJS = \
57 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
58 SETUPHDIR = \
59 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
60
61 ### Conditionally set variables: ###
62
63 ifeq ($(GCC_VERSION),2.95)
64 GCCFLAGS = -fvtable-thunks
65 endif
66 ifeq ($(SHARED),0)
67 LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_lib$(CFG)
68 endif
69 ifeq ($(SHARED),1)
70 LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_dll$(CFG)
71 endif
72 ifeq ($(USE_GUI),0)
73 PORTNAME = base
74 endif
75 ifeq ($(USE_GUI),1)
76 PORTNAME = msw
77 endif
78 ifeq ($(OFFICIAL_BUILD),0)
79 VENDORTAG = _$(VENDOR)
80 endif
81 ifeq ($(OFFICIAL_BUILD),1)
82 VENDORTAG =
83 endif
84 ifeq ($(BUILD),debug)
85 ifeq ($(DEBUG_FLAG),default)
86 WXDEBUGFLAG = d
87 endif
88 endif
89 ifeq ($(DEBUG_FLAG),1)
90 WXDEBUGFLAG = d
91 endif
92 ifeq ($(SHARED),1)
93 WXDLLFLAG = dll
94 endif
95 ifeq ($(UNICODE),1)
96 WXUNICODEFLAG = u
97 endif
98 ifeq ($(WXUNIV),1)
99 WXUNIVNAME = univ
100 endif
101 ifeq ($(BUILD),debug)
102 ifeq ($(DEBUG_INFO),default)
103 __DEBUGINFO = -g
104 endif
105 endif
106 ifeq ($(BUILD),release)
107 ifeq ($(DEBUG_INFO),default)
108 __DEBUGINFO =
109 endif
110 endif
111 ifeq ($(DEBUG_INFO),0)
112 __DEBUGINFO =
113 endif
114 ifeq ($(DEBUG_INFO),1)
115 __DEBUGINFO = -g
116 endif
117 ifeq ($(BUILD),debug)
118 ifeq ($(DEBUG_FLAG),default)
119 __DEBUG_DEFINE_p = -D__WXDEBUG__
120 endif
121 endif
122 ifeq ($(DEBUG_FLAG),1)
123 __DEBUG_DEFINE_p = -D__WXDEBUG__
124 endif
125 ifeq ($(USE_GUI),1)
126 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
127 endif
128 ifeq ($(USE_GUI),1)
129 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
130 endif
131 ifeq ($(USE_GUI),1)
132 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
133 endif
134 ifeq ($(BUILD),debug)
135 __OPTIMIZEFLAG = -O0
136 endif
137 ifeq ($(BUILD),release)
138 __OPTIMIZEFLAG = -O2
139 endif
140 ifeq ($(UNICODE),1)
141 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
142 endif
143 ifeq ($(MSLU),1)
144 __UNICOWS_LIB_p = -lunicows
145 endif
146 ifeq ($(MONOLITHIC),0)
147 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
148 endif
149 ifeq ($(MONOLITHIC),0)
150 __WXLIB_CORE_p = \
151 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
152 endif
153 ifeq ($(MONOLITHIC),1)
154 __WXLIB_MONO_p = \
155 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
156 endif
157 ifeq ($(WXUNIV),1)
158 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
159 endif
160 ifeq ($(SHARED),1)
161 __deprecateddll___depname = \
162 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll
163 endif
164 ifeq ($(SHARED),0)
165 __deprecatedlib___depname = \
166 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a
167 endif
168
169
170 all: $(OBJS)
171 $(OBJS):
172 -if not exist $(OBJS) mkdir $(OBJS)
173
174 ### Targets: ###
175
176 all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
177
178 $(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c
179 $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $<
180
181 $(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
182 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
183
184 $(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp
185 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
186
187 $(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp
188 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
189
190 $(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp
191 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
192
193 $(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp
194 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
195
196 $(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
197 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
198
199 $(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp
200 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
201
202 $(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp
203 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
204
205 $(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c
206 $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $<
207
208 $(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
209 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
210
211 $(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp
212 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
213
214 $(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp
215 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
216
217 $(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp
218 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
219
220 $(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp
221 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
222
223 $(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
224 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
225
226 $(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp
227 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
228
229 $(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp
230 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
231
232 clean:
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
238 ifeq ($(SHARED),1)
239 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS)
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)
241 endif
242
243 ifeq ($(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 $@
248 endif
249
250 .PHONY: all clean