]> git.saurik.com Git - wxWidgets.git/blame - utils/screenshotgen/src/makefile.gcc
Update configuration for OpenVMS
[wxWidgets.git] / utils / screenshotgen / src / makefile.gcc
CommitLineData
0d5eda9c
FM
1# =========================================================================
2# This makefile was generated by
506e9b7e 3# Bakefile 0.2.5 (http://www.bakefile.org)
0d5eda9c
FM
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
15CPPDEPS = -MT$@ -MF$@.d -MD -MP
16WX_RELEASE_NODOT = 29
17COMPILER_PREFIX = gcc
18OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23SCREENSHOTGEN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
29 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30SCREENSHOTGEN_OBJECTS = \
31 $(OBJS)\screenshotgen_screenshot_app.o \
32 $(OBJS)\screenshotgen_screenshot_main.o \
33 $(OBJS)\screenshotgen_guiframe.o \
34 $(OBJS)\screenshotgen_ctrlmaskout.o \
35 $(OBJS)\screenshotgen_customcombo.o \
36 $(OBJS)\screenshotgen_autocapture.o \
37 $(OBJS)\screenshotgen_screenshotgen_rc.o
38
39### Conditionally set variables: ###
40
41ifeq ($(GCC_VERSION),2.95)
42GCCFLAGS = -fvtable-thunks
43endif
44ifeq ($(USE_GUI),0)
45PORTNAME = base
46endif
47ifeq ($(USE_GUI),1)
48PORTNAME = msw
49endif
50ifeq ($(BUILD),debug)
51ifeq ($(DEBUG_FLAG),default)
52WXDEBUGFLAG = d
53endif
54endif
55ifeq ($(DEBUG_FLAG),1)
56WXDEBUGFLAG = d
57endif
58ifeq ($(UNICODE),1)
59WXUNICODEFLAG = u
60endif
61ifeq ($(WXUNIV),1)
62WXUNIVNAME = univ
63endif
64ifeq ($(SHARED),1)
65WXDLLFLAG = dll
66endif
67ifeq ($(SHARED),0)
68LIBTYPE_SUFFIX = lib
69endif
70ifeq ($(SHARED),1)
71LIBTYPE_SUFFIX = dll
72endif
73ifeq ($(MONOLITHIC),0)
74EXTRALIBS_FOR_BASE =
75endif
76ifeq ($(MONOLITHIC),1)
77EXTRALIBS_FOR_BASE =
78endif
79ifeq ($(BUILD),debug)
80__OPTIMIZEFLAG_2 = -O0
81endif
82ifeq ($(BUILD),release)
83__OPTIMIZEFLAG_2 = -O2
84endif
85ifeq ($(USE_RTTI),0)
86__RTTIFLAG_5 = -fno-rtti
87endif
88ifeq ($(USE_RTTI),1)
89__RTTIFLAG_5 =
90endif
91ifeq ($(USE_EXCEPTIONS),0)
92__EXCEPTIONSFLAG_6 = -fno-exceptions
93endif
94ifeq ($(USE_EXCEPTIONS),1)
95__EXCEPTIONSFLAG_6 =
96endif
97ifeq ($(WXUNIV),1)
98__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
99endif
100ifeq ($(WXUNIV),1)
101__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
102endif
103ifeq ($(BUILD),debug)
104ifeq ($(DEBUG_FLAG),default)
105__DEBUG_DEFINE_p = -D__WXDEBUG__
106endif
107endif
108ifeq ($(DEBUG_FLAG),1)
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110endif
111ifeq ($(BUILD),debug)
112ifeq ($(DEBUG_FLAG),default)
113__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
114endif
115endif
116ifeq ($(DEBUG_FLAG),1)
117__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118endif
119ifeq ($(USE_EXCEPTIONS),0)
120__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
121endif
122ifeq ($(USE_EXCEPTIONS),0)
123__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
124endif
125ifeq ($(USE_RTTI),0)
126__RTTI_DEFINE_p = -DwxNO_RTTI
127endif
128ifeq ($(USE_RTTI),0)
129__RTTI_DEFINE_p_1 = --define wxNO_RTTI
130endif
131ifeq ($(USE_THREADS),0)
132__THREAD_DEFINE_p = -DwxNO_THREADS
133endif
134ifeq ($(USE_THREADS),0)
135__THREAD_DEFINE_p_1 = --define wxNO_THREADS
136endif
137ifeq ($(UNICODE),0)
138__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
139endif
140ifeq ($(UNICODE),1)
141__UNICODE_DEFINE_p = -D_UNICODE
142endif
143ifeq ($(UNICODE),0)
144__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
145endif
146ifeq ($(UNICODE),1)
147__UNICODE_DEFINE_p_1 = --define _UNICODE
148endif
149ifeq ($(MSLU),1)
150__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
151endif
152ifeq ($(MSLU),1)
153__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
154endif
155ifeq ($(USE_GDIPLUS),1)
156__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
157endif
158ifeq ($(USE_GDIPLUS),1)
159__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
160endif
161ifeq ($(SHARED),1)
162__DLLFLAG_p = -DWXUSINGDLL
163endif
164ifeq ($(SHARED),1)
165__DLLFLAG_p_1 = --define WXUSINGDLL
166endif
167ifeq ($(MONOLITHIC),0)
168__WXLIB_AUI_p = \
169 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui
170endif
171ifeq ($(MONOLITHIC),0)
172__WXLIB_ADV_p = \
173 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
174endif
175ifeq ($(MONOLITHIC),0)
176__WXLIB_RICHTEXT_p = \
177 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_richtext
178endif
179ifeq ($(MONOLITHIC),0)
180__WXLIB_HTML_p = \
181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
182endif
183ifeq ($(MONOLITHIC),0)
184__WXLIB_XML_p = \
185 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
186endif
187ifeq ($(MONOLITHIC),0)
188__WXLIB_CORE_p = \
189 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
190endif
191ifeq ($(MONOLITHIC),0)
192__WXLIB_BASE_p = \
193 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
194endif
195ifeq ($(MONOLITHIC),1)
196__WXLIB_MONO_p = \
197 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
198endif
199ifeq ($(USE_GUI),1)
200__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
201endif
202ifeq ($(USE_GUI),1)
203__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
204endif
205ifeq ($(USE_GUI),1)
206__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
207endif
208ifeq ($(MSLU),1)
209__UNICOWS_LIB_p = -lunicows
210endif
211ifeq ($(USE_GDIPLUS),1)
212__GDIPLUS_LIB_p = -lgdiplus
213endif
214ifeq ($(BUILD),debug)
215ifeq ($(DEBUG_INFO),default)
216__DEBUGINFO = -g
217endif
218endif
219ifeq ($(BUILD),release)
220ifeq ($(DEBUG_INFO),default)
221__DEBUGINFO =
222endif
223endif
224ifeq ($(DEBUG_INFO),0)
225__DEBUGINFO =
226endif
227ifeq ($(DEBUG_INFO),1)
228__DEBUGINFO = -g
229endif
230ifeq ($(USE_THREADS),0)
231__THREADSFLAG =
232endif
233ifeq ($(USE_THREADS),1)
234__THREADSFLAG = -mthreads
235endif
236
237
238all: $(OBJS)
239$(OBJS):
240 -if not exist $(OBJS) mkdir $(OBJS)
241
242### Targets: ###
243
d0aff302 244all: $(OBJS)\screenshotgen.exe bitmaps xml
0d5eda9c
FM
245
246clean:
247 -if exist $(OBJS)\*.o del $(OBJS)\*.o
248 -if exist $(OBJS)\*.d del $(OBJS)\*.d
249 -if exist $(OBJS)\screenshotgen.exe del $(OBJS)\screenshotgen.exe
250
251$(OBJS)\screenshotgen.exe: $(SCREENSHOTGEN_OBJECTS) $(OBJS)\screenshotgen_screenshotgen_rc.o
252 $(CXX) -o $@ $(SCREENSHOTGEN_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__WXLIB_AUI_p) $(__WXLIB_ADV_p) $(__WXLIB_RICHTEXT_p) $(__WXLIB_HTML_p) $(__WXLIB_XML_p) $(__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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
253
d0aff302
FM
254bitmaps:
255 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
256 for %%f in (wxwin32x32.png bell.png sound.png dropbuth.png dropbutn.png dropbutp.png throbber.gif) do if not exist $(OBJS)\bitmaps\%%f copy .\bitmaps\%%f $(OBJS)\bitmaps
257
258xml:
0d5eda9c 259 if not exist $(OBJS) mkdir $(OBJS)
d0aff302 260 for %%f in (richtext.xml) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
0d5eda9c
FM
261
262$(OBJS)\screenshotgen_screenshot_app.o: ./screenshot_app.cpp
263 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
264
265$(OBJS)\screenshotgen_screenshot_main.o: ./screenshot_main.cpp
266 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
267
268$(OBJS)\screenshotgen_guiframe.o: ./guiframe.cpp
269 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
270
271$(OBJS)\screenshotgen_ctrlmaskout.o: ./ctrlmaskout.cpp
272 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
273
274$(OBJS)\screenshotgen_customcombo.o: ./customcombo.cpp
275 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
276
277$(OBJS)\screenshotgen_autocapture.o: ./autocapture.cpp
278 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
279
280$(OBJS)\screenshotgen_screenshotgen_rc.o: ./screenshotgen.rc
281 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) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples --define NOPCH
282
d0aff302 283.PHONY: all clean bitmaps xml
0d5eda9c
FM
284
285
286SHELL := $(COMSPEC)
287
288# Dependencies tracking:
289-include $(OBJS)/*.d