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