]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/makefile.gcc
added ADVANCED_GTK_HDR section for src/gtk/eggtrayicon.h
[wxWidgets.git] / tests / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (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
15WX_RELEASE_NODOT = 25
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
21 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
22 -I.\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \
23 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
24TEST_OBJECTS = \
25 $(OBJS)\test_test.o \
26 $(OBJS)\test_main.o \
27 $(OBJS)\test_formatconverter.o \
28 $(OBJS)\test_regex.o \
29 $(OBJS)\test_wxregex.o \
30 $(OBJS)\test_fileconf.o \
31 $(OBJS)\test_filename.o \
32 $(OBJS)\test_filesys.o \
33 $(OBJS)\test_arrays.o \
34 $(OBJS)\test_hashes.o \
35 $(OBJS)\test_longlong.o \
36 $(OBJS)\test_strings.o \
37 $(OBJS)\test_stdstrings.o \
38 $(OBJS)\test_unicode.o \
39 $(OBJS)\test_crt.o \
40 $(OBJS)\test_bstream.o \
41 $(OBJS)\test_ffilestream.o \
42 $(OBJS)\test_filestream.o \
43 $(OBJS)\test_memstream.o \
44 $(OBJS)\test_sstream.o \
45 $(OBJS)\test_zlibstream.o \
46 $(OBJS)\test_fontmap.o \
47 $(OBJS)\test_datetime.o
48
49### Conditionally set variables: ###
50
51ifeq ($(GCC_VERSION),2.95)
52GCCFLAGS = -fvtable-thunks
53endif
54ifeq ($(USE_GUI),0)
55PORTNAME = base
56endif
57ifeq ($(USE_GUI),1)
58PORTNAME = msw
59endif
60ifeq ($(BUILD),debug)
61ifeq ($(DEBUG_FLAG),default)
62WXDEBUGFLAG = d
63endif
64endif
65ifeq ($(DEBUG_FLAG),1)
66WXDEBUGFLAG = d
67endif
68ifeq ($(UNICODE),1)
69WXUNICODEFLAG = u
70endif
71ifeq ($(WXUNIV),1)
72WXUNIVNAME = univ
73endif
74ifeq ($(SHARED),1)
75WXDLLFLAG = dll
76endif
77ifeq ($(BUILD),debug)
78__OPTIMIZEFLAG_2 = -O0
79endif
80ifeq ($(BUILD),release)
81__OPTIMIZEFLAG_2 = -O2
82endif
83ifeq ($(USE_EXCEPTIONS),0)
84__EXCEPTIONSFLAG_4 = -fno-rtti
85endif
86ifeq ($(USE_EXCEPTIONS),1)
87__EXCEPTIONSFLAG_4 =
88endif
89ifeq ($(USE_EXCEPTIONS),0)
90__EXCEPTIONSFLAG_5 = -fno-exceptions
91endif
92ifeq ($(USE_EXCEPTIONS),1)
93__EXCEPTIONSFLAG_5 =
94endif
95ifeq ($(WXUNIV),1)
96__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
97endif
98ifeq ($(BUILD),debug)
99ifeq ($(DEBUG_FLAG),default)
100__DEBUG_DEFINE_p = -D__WXDEBUG__
101endif
102endif
103ifeq ($(DEBUG_FLAG),1)
104__DEBUG_DEFINE_p = -D__WXDEBUG__
105endif
106ifeq ($(UNICODE),1)
107__UNICODE_DEFINE_p = -D_UNICODE
108endif
109ifeq ($(SHARED),1)
110__DLLFLAG_p = -DWXUSINGDLL
111endif
112ifeq ($(MONOLITHIC),0)
113__WXLIB_BASE_p = \
114 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
115endif
116ifeq ($(MONOLITHIC),1)
117__WXLIB_MONO_p = \
118 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
119endif
120ifeq ($(USE_GUI),1)
121__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
122endif
123ifeq ($(USE_GUI),1)
124__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
125endif
126ifeq ($(USE_GUI),1)
127__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
128endif
129ifeq ($(MSLU),1)
130__UNICOWS_LIB_p = -lunicows
131endif
132ifeq ($(SHARED),0)
133LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
134endif
135ifeq ($(SHARED),1)
136LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
137endif
138ifeq ($(BUILD),debug)
139ifeq ($(DEBUG_INFO),default)
140__DEBUGINFO = -g
141endif
142endif
143ifeq ($(BUILD),release)
144ifeq ($(DEBUG_INFO),default)
145__DEBUGINFO =
146endif
147endif
148ifeq ($(DEBUG_INFO),0)
149__DEBUGINFO =
150endif
151ifeq ($(DEBUG_INFO),1)
152__DEBUGINFO = -g
153endif
154
155
156all: $(OBJS)
157$(OBJS):
158 -if not exist $(OBJS) mkdir $(OBJS)
159
160### Targets: ###
161
162all: $(OBJS)\test.exe data
163
164clean:
165 -if exist $(OBJS)\*.o del $(OBJS)\*.o
166 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
167
168$(OBJS)\test.exe: $(TEST_OBJECTS)
169 $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
170
171data:
172 if not exist $(OBJS) mkdir $(OBJS)
173 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
174
175$(OBJS)\test_test.o: ./test.cpp
176 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
177
178$(OBJS)\test_main.o: ./mbconv/main.cpp
179 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
180
181$(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
182 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
183
184$(OBJS)\test_regex.o: ./regex/regex.cpp
185 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
186
187$(OBJS)\test_wxregex.o: ./regex/wxregex.cpp
188 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
189
190$(OBJS)\test_fileconf.o: ./fileconf/fileconf.cpp
191 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
192
193$(OBJS)\test_filename.o: ./filename/filename.cpp
194 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
195
196$(OBJS)\test_filesys.o: ./filesys/filesys.cpp
197 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
198
199$(OBJS)\test_arrays.o: ./arrays/arrays.cpp
200 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
201
202$(OBJS)\test_hashes.o: ./hashes/hashes.cpp
203 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
204
205$(OBJS)\test_longlong.o: ./longlong/longlong.cpp
206 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
207
208$(OBJS)\test_strings.o: ./strings/strings.cpp
209 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
210
211$(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
212 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
213
214$(OBJS)\test_unicode.o: ./strings/unicode.cpp
215 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
216
217$(OBJS)\test_crt.o: ./strings/crt.cpp
218 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
219
220$(OBJS)\test_bstream.o: ./streams/bstream.cpp
221 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
222
223$(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
224 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
225
226$(OBJS)\test_filestream.o: ./streams/filestream.cpp
227 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
228
229$(OBJS)\test_memstream.o: ./streams/memstream.cpp
230 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
231
232$(OBJS)\test_sstream.o: ./streams/sstream.cpp
233 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
234
235$(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
236 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
237
238$(OBJS)\test_fontmap.o: ./fontmap/fontmap.cpp
239 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
240
241$(OBJS)\test_datetime.o: ./datetime/datetime.cpp
242 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
243
244.PHONY: all clean data