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