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