]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.gcc
Tex2RTF doesn't like {\tt{ thing}}
[wxWidgets.git] / tests / makefile.gcc
CommitLineData
670ec357
VS
1# =========================================================================
2# This makefile was generated by
1b035b8c 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
670ec357
VS
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
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I.\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \
22 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
23TEST_OBJECTS = \
24 $(OBJS)\test_test.o \
e70833fb 25 $(OBJS)\test_main.o \
7d5ab151 26 $(OBJS)\test_formatconverter.o \
4827cbd9 27 $(OBJS)\test_regex.o \
bc10103e 28 $(OBJS)\test_wxregex.o \
cf1014a2 29 $(OBJS)\test_filesys.o \
1b035b8c 30 $(OBJS)\test_arrays.o \
f9c3d39b 31 $(OBJS)\test_hashes.o \
7735998c 32 $(OBJS)\test_longlong.o \
1cd53e88 33 $(OBJS)\test_strings.o \
405b7d91 34 $(OBJS)\test_stdstrings.o \
387f829e 35 $(OBJS)\test_unicode.o \
cf8ee08b 36 $(OBJS)\test_crt.o \
7735998c
VS
37 $(OBJS)\test_bstream.o \
38 $(OBJS)\test_ffilestream.o \
39 $(OBJS)\test_filestream.o \
40 $(OBJS)\test_memstream.o \
41 $(OBJS)\test_zlibstream.o
670ec357
VS
42
43### Conditionally set variables: ###
44
45ifeq ($(GCC_VERSION),2.95)
46GCCFLAGS = -fvtable-thunks
47endif
48ifeq ($(USE_GUI),0)
49PORTNAME = base
50endif
51ifeq ($(USE_GUI),1)
52PORTNAME = msw
53endif
54ifeq ($(BUILD),debug)
55ifeq ($(DEBUG_FLAG),default)
56WXDEBUGFLAG = d
57endif
58endif
59ifeq ($(DEBUG_FLAG),1)
60WXDEBUGFLAG = d
61endif
62ifeq ($(UNICODE),1)
63WXUNICODEFLAG = u
64endif
65ifeq ($(WXUNIV),1)
66WXUNIVNAME = univ
67endif
68ifeq ($(SHARED),1)
69WXDLLFLAG = dll
70endif
71ifeq ($(BUILD),debug)
72__OPTIMIZEFLAG_2 = -O0
73endif
74ifeq ($(BUILD),release)
75__OPTIMIZEFLAG_2 = -O2
76endif
77ifeq ($(USE_EXCEPTIONS),0)
78__EXCEPTIONSFLAG_4 = -fno-rtti
79endif
80ifeq ($(USE_EXCEPTIONS),1)
81__EXCEPTIONSFLAG_4 =
82endif
83ifeq ($(USE_EXCEPTIONS),0)
84__EXCEPTIONSFLAG_5 = -fno-exceptions
85endif
86ifeq ($(USE_EXCEPTIONS),1)
87__EXCEPTIONSFLAG_5 =
88endif
89ifeq ($(WXUNIV),1)
90__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
91endif
92ifeq ($(BUILD),debug)
93ifeq ($(DEBUG_FLAG),default)
94__DEBUG_DEFINE_p = -D__WXDEBUG__
95endif
96endif
97ifeq ($(DEBUG_FLAG),1)
98__DEBUG_DEFINE_p = -D__WXDEBUG__
99endif
100ifeq ($(UNICODE),1)
101__UNICODE_DEFINE_p = -D_UNICODE
102endif
103ifeq ($(SHARED),1)
104__DLLFLAG_p = -DWXUSINGDLL
105endif
106ifeq ($(MONOLITHIC),0)
107__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
108endif
109ifeq ($(MONOLITHIC),1)
110__WXLIB_MONO_p = \
111 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
112endif
113ifeq ($(USE_GUI),1)
114__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
115endif
116ifeq ($(USE_GUI),1)
117__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
118endif
119ifeq ($(USE_GUI),1)
120__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
121endif
122ifeq ($(MSLU),1)
123__UNICOWS_LIB_p = -lunicows
124endif
125ifeq ($(SHARED),0)
126LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
127endif
128ifeq ($(SHARED),1)
129LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
130endif
131ifeq ($(BUILD),debug)
132ifeq ($(DEBUG_INFO),default)
133__DEBUGINFO = -g
134endif
135endif
136ifeq ($(BUILD),release)
137ifeq ($(DEBUG_INFO),default)
138__DEBUGINFO =
139endif
140endif
141ifeq ($(DEBUG_INFO),0)
142__DEBUGINFO =
143endif
144ifeq ($(DEBUG_INFO),1)
145__DEBUGINFO = -g
146endif
147
148
149all: $(OBJS)
150$(OBJS):
151 -if not exist $(OBJS) mkdir $(OBJS)
152
153### Targets: ###
154
387f829e 155all: $(OBJS)\test.exe data
670ec357
VS
156
157clean:
158 -if exist $(OBJS)\*.o del $(OBJS)\*.o
159 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
160
161$(OBJS)\test.exe: $(TEST_OBJECTS)
162 $(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
163
387f829e
VS
164data:
165 if not exist $(OBJS) mkdir $(OBJS)
166 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
167
670ec357
VS
168$(OBJS)\test_test.o: ./test.cpp
169 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
170
171$(OBJS)\test_main.o: ./mbconv/main.cpp
172 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
173
7d5ab151
VS
174$(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
175 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
176
e70833fb
VS
177$(OBJS)\test_regex.o: ./regex/regex.cpp
178 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
179
bc10103e
VS
180$(OBJS)\test_wxregex.o: ./regex/wxregex.cpp
181 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
182
4827cbd9
VS
183$(OBJS)\test_filesys.o: ./filesys/filesys.cpp
184 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
185
cf1014a2
VS
186$(OBJS)\test_arrays.o: ./arrays/arrays.cpp
187 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
188
f9c3d39b
MB
189$(OBJS)\test_hashes.o: ./hashes/hashes.cpp
190 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
191
1b035b8c
VS
192$(OBJS)\test_longlong.o: ./longlong/longlong.cpp
193 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
194
1cd53e88
VS
195$(OBJS)\test_strings.o: ./strings/strings.cpp
196 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
197
405b7d91
WS
198$(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
199 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
200
387f829e
VS
201$(OBJS)\test_unicode.o: ./strings/unicode.cpp
202 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
203
cf8ee08b
VS
204$(OBJS)\test_crt.o: ./strings/crt.cpp
205 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
206
7735998c
VS
207$(OBJS)\test_bstream.o: ./streams/bstream.cpp
208 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
209
210$(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
211 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
212
213$(OBJS)\test_filestream.o: ./streams/filestream.cpp
214 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
215
216$(OBJS)\test_memstream.o: ./streams/memstream.cpp
217 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
218
219$(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
220 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
221
387f829e 222.PHONY: all clean data