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