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