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