]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.gcc
fixes for warnings about implicit double -> int conversions
[wxWidgets.git] / tests / makefile.gcc
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
7 include ../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 TEST_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)
23 TEST_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
31 ifeq ($(GCC_VERSION),2.95)
32 GCCFLAGS = -fvtable-thunks
33 endif
34 ifeq ($(USE_GUI),0)
35 PORTNAME = base
36 endif
37 ifeq ($(USE_GUI),1)
38 PORTNAME = msw
39 endif
40 ifeq ($(BUILD),debug)
41 ifeq ($(DEBUG_FLAG),default)
42 WXDEBUGFLAG = d
43 endif
44 endif
45 ifeq ($(DEBUG_FLAG),1)
46 WXDEBUGFLAG = d
47 endif
48 ifeq ($(UNICODE),1)
49 WXUNICODEFLAG = u
50 endif
51 ifeq ($(WXUNIV),1)
52 WXUNIVNAME = univ
53 endif
54 ifeq ($(SHARED),1)
55 WXDLLFLAG = dll
56 endif
57 ifeq ($(BUILD),debug)
58 __OPTIMIZEFLAG_2 = -O0
59 endif
60 ifeq ($(BUILD),release)
61 __OPTIMIZEFLAG_2 = -O2
62 endif
63 ifeq ($(USE_EXCEPTIONS),0)
64 __EXCEPTIONSFLAG_4 = -fno-rtti
65 endif
66 ifeq ($(USE_EXCEPTIONS),1)
67 __EXCEPTIONSFLAG_4 =
68 endif
69 ifeq ($(USE_EXCEPTIONS),0)
70 __EXCEPTIONSFLAG_5 = -fno-exceptions
71 endif
72 ifeq ($(USE_EXCEPTIONS),1)
73 __EXCEPTIONSFLAG_5 =
74 endif
75 ifeq ($(WXUNIV),1)
76 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
77 endif
78 ifeq ($(BUILD),debug)
79 ifeq ($(DEBUG_FLAG),default)
80 __DEBUG_DEFINE_p = -D__WXDEBUG__
81 endif
82 endif
83 ifeq ($(DEBUG_FLAG),1)
84 __DEBUG_DEFINE_p = -D__WXDEBUG__
85 endif
86 ifeq ($(UNICODE),1)
87 __UNICODE_DEFINE_p = -D_UNICODE
88 endif
89 ifeq ($(SHARED),1)
90 __DLLFLAG_p = -DWXUSINGDLL
91 endif
92 ifeq ($(MONOLITHIC),0)
93 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
94 endif
95 ifeq ($(MONOLITHIC),1)
96 __WXLIB_MONO_p = \
97 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
98 endif
99 ifeq ($(USE_GUI),1)
100 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
101 endif
102 ifeq ($(USE_GUI),1)
103 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
104 endif
105 ifeq ($(USE_GUI),1)
106 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
107 endif
108 ifeq ($(MSLU),1)
109 __UNICOWS_LIB_p = -lunicows
110 endif
111 ifeq ($(SHARED),0)
112 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
113 endif
114 ifeq ($(SHARED),1)
115 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
116 endif
117 ifeq ($(BUILD),debug)
118 ifeq ($(DEBUG_INFO),default)
119 __DEBUGINFO = -g
120 endif
121 endif
122 ifeq ($(BUILD),release)
123 ifeq ($(DEBUG_INFO),default)
124 __DEBUGINFO =
125 endif
126 endif
127 ifeq ($(DEBUG_INFO),0)
128 __DEBUGINFO =
129 endif
130 ifeq ($(DEBUG_INFO),1)
131 __DEBUGINFO = -g
132 endif
133
134
135 all: $(OBJS)
136 $(OBJS):
137 -if not exist $(OBJS) mkdir $(OBJS)
138
139 ### Targets: ###
140
141 all: $(OBJS)\test.exe
142
143 clean:
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