]> git.saurik.com Git - wxWidgets.git/blob - samples/internat/makefile.gcc
mark slider as being transparent, otherwise it has ugly solid grey background when...
[wxWidgets.git] / samples / internat / 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 = 25
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 INTERNAT_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 INTERNAT_OBJECTS = \
28 $(OBJS)\internat_internat.o \
29 $(OBJS)\internat_internat_rc.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_CORE_p = \
143 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
144 endif
145 ifeq ($(MONOLITHIC),0)
146 __WXLIB_BASE_p = \
147 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
148 endif
149 ifeq ($(MONOLITHIC),1)
150 __WXLIB_MONO_p = \
151 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
152 endif
153 ifeq ($(USE_GUI),1)
154 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
155 endif
156 ifeq ($(USE_GUI),1)
157 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
158 endif
159 ifeq ($(USE_GUI),1)
160 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
161 endif
162 ifeq ($(MSLU),1)
163 __UNICOWS_LIB_p = -lunicows
164 endif
165 ifeq ($(BUILD),debug)
166 ifeq ($(DEBUG_INFO),default)
167 __DEBUGINFO = -g
168 endif
169 endif
170 ifeq ($(BUILD),release)
171 ifeq ($(DEBUG_INFO),default)
172 __DEBUGINFO =
173 endif
174 endif
175 ifeq ($(DEBUG_INFO),0)
176 __DEBUGINFO =
177 endif
178 ifeq ($(DEBUG_INFO),1)
179 __DEBUGINFO = -g
180 endif
181 ifeq ($(USE_THREADS),0)
182 __THREADSFLAG =
183 endif
184 ifeq ($(USE_THREADS),1)
185 __THREADSFLAG = -mthreads
186 endif
187
188
189 all: $(OBJS)
190 $(OBJS):
191 -if not exist $(OBJS) mkdir $(OBJS)
192
193 ### Targets: ###
194
195 all: $(OBJS)\internat.exe bg cs de fr ja ka pl ru
196
197 clean:
198 -if exist $(OBJS)\*.o del $(OBJS)\*.o
199 -if exist $(OBJS)\internat.exe del $(OBJS)\internat.exe
200
201 $(OBJS)\internat.exe: $(INTERNAT_OBJECTS) $(OBJS)\internat_internat_rc.o
202 $(CXX) -o $@ $(INTERNAT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_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
203
204 bg:
205 if not exist $(OBJS)\bg mkdir $(OBJS)\bg
206 for %%f in (internat.po internat.mo) do if not exist $(OBJS)\bg\%%f copy .\bg\%%f $(OBJS)\bg
207
208 cs:
209 if not exist $(OBJS)\cs mkdir $(OBJS)\cs
210 for %%f in (internat.po internat.mo) do if not exist $(OBJS)\cs\%%f copy .\cs\%%f $(OBJS)\cs
211
212 de:
213 if not exist $(OBJS)\de mkdir $(OBJS)\de
214 for %%f in (internat.po internat.mo) do if not exist $(OBJS)\de\%%f copy .\de\%%f $(OBJS)\de
215
216 fr:
217 if not exist $(OBJS)\fr mkdir $(OBJS)\fr
218 for %%f in (internat.po internat.mo) do if not exist $(OBJS)\fr\%%f copy .\fr\%%f $(OBJS)\fr
219
220 ja:
221 if not exist $(OBJS)\ja mkdir $(OBJS)\ja
222 for %%f in (internat.po internat.mo) do if not exist $(OBJS)\ja\%%f copy .\ja\%%f $(OBJS)\ja
223
224 ka:
225 if not exist $(OBJS)\ka mkdir $(OBJS)\ka
226 for %%f in (internat.po internat.mo) do if not exist $(OBJS)\ka\%%f copy .\ka\%%f $(OBJS)\ka
227
228 pl:
229 if not exist $(OBJS)\pl mkdir $(OBJS)\pl
230 for %%f in (internat.po internat.mo) do if not exist $(OBJS)\pl\%%f copy .\pl\%%f $(OBJS)\pl
231
232 ru:
233 if not exist $(OBJS)\ru mkdir $(OBJS)\ru
234 for %%f in (internat.po internat.mo) do if not exist $(OBJS)\ru\%%f copy .\ru\%%f $(OBJS)\ru
235
236 $(OBJS)\internat_internat.o: ./internat.cpp
237 $(CXX) -c -o $@ $(INTERNAT_CXXFLAGS) $<
238
239 $(OBJS)\internat_internat_rc.o: ./internat.rc
240 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 --define NOPCH
241
242 .PHONY: all clean bg cs de fr ja ka pl ru
243
244