]> git.saurik.com Git - wxWidgets.git/blob - samples/debugrpt/makefile.gcc
Compilation fix
[wxWidgets.git] / samples / debugrpt / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 WX_RELEASE_NODOT = 26
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 DEBUGRPT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
27 DEBUGRPT_OBJECTS = \
28 $(OBJS)\debugrpt_sample_rc.o \
29 $(OBJS)\debugrpt_debugrpt.o
30
31 ### Conditionally set variables: ###
32
33 ifeq ($(GCC_VERSION),2.95)
34 GCCFLAGS = -fvtable-thunks
35 endif
36 ifeq ($(USE_GUI),0)
37 PORTNAME = base
38 endif
39 ifeq ($(USE_GUI),1)
40 PORTNAME = msw
41 endif
42 ifeq ($(BUILD),debug)
43 ifeq ($(DEBUG_FLAG),default)
44 WXDEBUGFLAG = d
45 endif
46 endif
47 ifeq ($(DEBUG_FLAG),1)
48 WXDEBUGFLAG = d
49 endif
50 ifeq ($(UNICODE),1)
51 WXUNICODEFLAG = u
52 endif
53 ifeq ($(WXUNIV),1)
54 WXUNIVNAME = univ
55 endif
56 ifeq ($(SHARED),1)
57 WXDLLFLAG = dll
58 endif
59 ifeq ($(SHARED),0)
60 LIBTYPE_SUFFIX = lib
61 endif
62 ifeq ($(SHARED),1)
63 LIBTYPE_SUFFIX = dll
64 endif
65 ifeq ($(MONOLITHIC),0)
66 EXTRALIBS_FOR_BASE =
67 endif
68 ifeq ($(MONOLITHIC),1)
69 EXTRALIBS_FOR_BASE =
70 endif
71 ifeq ($(BUILD),debug)
72 __OPTIMIZEFLAG_2 = -O0
73 endif
74 ifeq ($(BUILD),release)
75 __OPTIMIZEFLAG_2 = -O2
76 endif
77 ifeq ($(USE_RTTI),0)
78 __RTTIFLAG_5 = -fno-rtti
79 endif
80 ifeq ($(USE_RTTI),1)
81 __RTTIFLAG_5 =
82 endif
83 ifeq ($(USE_EXCEPTIONS),0)
84 __EXCEPTIONSFLAG_6 = -fno-exceptions
85 endif
86 ifeq ($(USE_EXCEPTIONS),1)
87 __EXCEPTIONSFLAG_6 =
88 endif
89 ifeq ($(WXUNIV),1)
90 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
91 endif
92 ifeq ($(WXUNIV),1)
93 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
94 endif
95 ifeq ($(BUILD),debug)
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
98 endif
99 endif
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p = -D__WXDEBUG__
102 endif
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106 endif
107 endif
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110 endif
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
113 endif
114 ifeq ($(USE_EXCEPTIONS),0)
115 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
116 endif
117 ifeq ($(USE_RTTI),0)
118 __RTTI_DEFINE_p = -DwxNO_RTTI
119 endif
120 ifeq ($(USE_RTTI),0)
121 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
122 endif
123 ifeq ($(USE_THREADS),0)
124 __THREAD_DEFINE_p = -DwxNO_THREADS
125 endif
126 ifeq ($(USE_THREADS),0)
127 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
128 endif
129 ifeq ($(UNICODE),1)
130 __UNICODE_DEFINE_p = -D_UNICODE
131 endif
132 ifeq ($(UNICODE),1)
133 __UNICODE_DEFINE_p_1 = --define _UNICODE
134 endif
135 ifeq ($(SHARED),1)
136 __DLLFLAG_p = -DWXUSINGDLL
137 endif
138 ifeq ($(SHARED),1)
139 __DLLFLAG_p_1 = --define WXUSINGDLL
140 endif
141 ifeq ($(MONOLITHIC),0)
142 __WXLIB_QA_p = \
143 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_qa
144 endif
145 ifeq ($(MONOLITHIC),0)
146 __WXLIB_CORE_p = \
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
148 endif
149 ifeq ($(MONOLITHIC),0)
150 __WXLIB_BASE_p = \
151 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
152 endif
153 ifeq ($(MONOLITHIC),0)
154 __WXLIB_XML_p = \
155 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
156 endif
157 ifeq ($(MONOLITHIC),1)
158 __WXLIB_MONO_p = \
159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
160 endif
161 ifeq ($(USE_GUI),1)
162 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
163 endif
164 ifeq ($(USE_GUI),1)
165 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
166 endif
167 ifeq ($(USE_GUI),1)
168 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
169 endif
170 ifeq ($(MSLU),1)
171 __UNICOWS_LIB_p = -lunicows
172 endif
173 ifeq ($(BUILD),debug)
174 ifeq ($(DEBUG_INFO),default)
175 __DEBUGINFO = -g
176 endif
177 endif
178 ifeq ($(BUILD),release)
179 ifeq ($(DEBUG_INFO),default)
180 __DEBUGINFO =
181 endif
182 endif
183 ifeq ($(DEBUG_INFO),0)
184 __DEBUGINFO =
185 endif
186 ifeq ($(DEBUG_INFO),1)
187 __DEBUGINFO = -g
188 endif
189 ifeq ($(USE_THREADS),0)
190 __THREADSFLAG =
191 endif
192 ifeq ($(USE_THREADS),1)
193 __THREADSFLAG = -mthreads
194 endif
195
196
197 all: $(OBJS)
198 $(OBJS):
199 -if not exist $(OBJS) mkdir $(OBJS)
200
201 ### Targets: ###
202
203 all: $(OBJS)\debugrpt.exe
204
205 clean:
206 -if exist $(OBJS)\*.o del $(OBJS)\*.o
207 -if exist $(OBJS)\debugrpt.exe del $(OBJS)\debugrpt.exe
208
209 $(OBJS)\debugrpt.exe: $(DEBUGRPT_OBJECTS) $(OBJS)\debugrpt_sample_rc.o
210 $(CXX) -o $@ $(DEBUGRPT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_QA_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_XML_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
211
212 $(OBJS)\debugrpt_sample_rc.o: ./../../samples/sample.rc
213 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
214
215 $(OBJS)\debugrpt_debugrpt.o: ./debugrpt.cpp
216 $(CXX) -c -o $@ $(DEBUGRPT_CXXFLAGS) $<
217
218 .PHONY: all clean
219
220