]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.gcc
eliminated some warnings
[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 \
cf1014a2 28 $(OBJS)\test_filesys.o \
1b035b8c 29 $(OBJS)\test_arrays.o \
7735998c 30 $(OBJS)\test_longlong.o \
1cd53e88 31 $(OBJS)\test_strings.o \
7735998c
VS
32 $(OBJS)\test_bstream.o \
33 $(OBJS)\test_ffilestream.o \
34 $(OBJS)\test_filestream.o \
35 $(OBJS)\test_memstream.o \
36 $(OBJS)\test_zlibstream.o
670ec357
VS
37
38### Conditionally set variables: ###
39
40ifeq ($(GCC_VERSION),2.95)
41GCCFLAGS = -fvtable-thunks
42endif
43ifeq ($(USE_GUI),0)
44PORTNAME = base
45endif
46ifeq ($(USE_GUI),1)
47PORTNAME = msw
48endif
49ifeq ($(BUILD),debug)
50ifeq ($(DEBUG_FLAG),default)
51WXDEBUGFLAG = d
52endif
53endif
54ifeq ($(DEBUG_FLAG),1)
55WXDEBUGFLAG = d
56endif
57ifeq ($(UNICODE),1)
58WXUNICODEFLAG = u
59endif
60ifeq ($(WXUNIV),1)
61WXUNIVNAME = univ
62endif
63ifeq ($(SHARED),1)
64WXDLLFLAG = dll
65endif
66ifeq ($(BUILD),debug)
67__OPTIMIZEFLAG_2 = -O0
68endif
69ifeq ($(BUILD),release)
70__OPTIMIZEFLAG_2 = -O2
71endif
72ifeq ($(USE_EXCEPTIONS),0)
73__EXCEPTIONSFLAG_4 = -fno-rtti
74endif
75ifeq ($(USE_EXCEPTIONS),1)
76__EXCEPTIONSFLAG_4 =
77endif
78ifeq ($(USE_EXCEPTIONS),0)
79__EXCEPTIONSFLAG_5 = -fno-exceptions
80endif
81ifeq ($(USE_EXCEPTIONS),1)
82__EXCEPTIONSFLAG_5 =
83endif
84ifeq ($(WXUNIV),1)
85__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
86endif
87ifeq ($(BUILD),debug)
88ifeq ($(DEBUG_FLAG),default)
89__DEBUG_DEFINE_p = -D__WXDEBUG__
90endif
91endif
92ifeq ($(DEBUG_FLAG),1)
93__DEBUG_DEFINE_p = -D__WXDEBUG__
94endif
95ifeq ($(UNICODE),1)
96__UNICODE_DEFINE_p = -D_UNICODE
97endif
98ifeq ($(SHARED),1)
99__DLLFLAG_p = -DWXUSINGDLL
100endif
101ifeq ($(MONOLITHIC),0)
102__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
103endif
104ifeq ($(MONOLITHIC),1)
105__WXLIB_MONO_p = \
106 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
107endif
108ifeq ($(USE_GUI),1)
109__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
110endif
111ifeq ($(USE_GUI),1)
112__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
113endif
114ifeq ($(USE_GUI),1)
115__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
116endif
117ifeq ($(MSLU),1)
118__UNICOWS_LIB_p = -lunicows
119endif
120ifeq ($(SHARED),0)
121LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
122endif
123ifeq ($(SHARED),1)
124LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
125endif
126ifeq ($(BUILD),debug)
127ifeq ($(DEBUG_INFO),default)
128__DEBUGINFO = -g
129endif
130endif
131ifeq ($(BUILD),release)
132ifeq ($(DEBUG_INFO),default)
133__DEBUGINFO =
134endif
135endif
136ifeq ($(DEBUG_INFO),0)
137__DEBUGINFO =
138endif
139ifeq ($(DEBUG_INFO),1)
140__DEBUGINFO = -g
141endif
142
143
144all: $(OBJS)
145$(OBJS):
146 -if not exist $(OBJS) mkdir $(OBJS)
147
148### Targets: ###
149
150all: $(OBJS)\test.exe
151
152clean:
153 -if exist $(OBJS)\*.o del $(OBJS)\*.o
154 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
155
156$(OBJS)\test.exe: $(TEST_OBJECTS)
157 $(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
158
159$(OBJS)\test_test.o: ./test.cpp
160 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
161
162$(OBJS)\test_main.o: ./mbconv/main.cpp
163 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
164
7d5ab151
VS
165$(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
166 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
167
e70833fb
VS
168$(OBJS)\test_regex.o: ./regex/regex.cpp
169 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
170
4827cbd9
VS
171$(OBJS)\test_filesys.o: ./filesys/filesys.cpp
172 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
173
cf1014a2
VS
174$(OBJS)\test_arrays.o: ./arrays/arrays.cpp
175 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
176
1b035b8c
VS
177$(OBJS)\test_longlong.o: ./longlong/longlong.cpp
178 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
179
1cd53e88
VS
180$(OBJS)\test_strings.o: ./strings/strings.cpp
181 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
182
7735998c
VS
183$(OBJS)\test_bstream.o: ./streams/bstream.cpp
184 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
185
186$(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
187 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
188
189$(OBJS)\test_filestream.o: ./streams/filestream.cpp
190 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
191
192$(OBJS)\test_memstream.o: ./streams/memstream.cpp
193 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
194
195$(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
196 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
197
670ec357 198.PHONY: all clean