]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/studio/makefile.gcc
Rebake after recguard.h added to bakefiles
[wxWidgets.git] / contrib / samples / ogl / studio / makefile.gcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (http://bakefile.sourceforge.net)
2d611b5c
VS
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
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4818141b 16WX_RELEASE_NODOT = 26
2d611b5c
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
34f7e40f
JS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22STUDIO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77
MW
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 -I.\..\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) \
27 -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include $(__RTTIFLAG_5) \
28 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
34f7e40f
JS
29STUDIO_OBJECTS = \
30 $(OBJS)\studio_studio.o \
31 $(OBJS)\studio_doc.o \
32 $(OBJS)\studio_shapes.o \
33 $(OBJS)\studio_symbols.o \
34 $(OBJS)\studio_view.o \
35 $(OBJS)\studio_cspalette.o \
36 $(OBJS)\studio_mainfrm.o \
37 $(OBJS)\studio_project.o \
38 $(OBJS)\studio_dialogs.o \
39 $(OBJS)\studio_csprint.o \
40 $(OBJS)\studio_studio_rc.o
2d611b5c
VS
41
42### Conditionally set variables: ###
43
44ifeq ($(GCC_VERSION),2.95)
45GCCFLAGS = -fvtable-thunks
46endif
47ifeq ($(USE_GUI),0)
48PORTNAME = base
49endif
50ifeq ($(USE_GUI),1)
51PORTNAME = msw
52endif
53ifeq ($(BUILD),debug)
54ifeq ($(DEBUG_FLAG),default)
55WXDEBUGFLAG = d
56endif
57endif
58ifeq ($(DEBUG_FLAG),1)
59WXDEBUGFLAG = d
60endif
2d611b5c
VS
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
b17c1746
DE
67ifeq ($(SHARED),1)
68WXDLLFLAG = dll
2d611b5c 69endif
b14abf14
JS
70ifeq ($(SHARED),0)
71LIBTYPE_SUFFIX = lib
72endif
73ifeq ($(SHARED),1)
74LIBTYPE_SUFFIX = dll
75endif
dd65d8c8
RN
76ifeq ($(MONOLITHIC),0)
77EXTRALIBS_FOR_BASE =
78endif
79ifeq ($(MONOLITHIC),1)
80EXTRALIBS_FOR_BASE =
81endif
b17c1746
DE
82ifeq ($(BUILD),debug)
83__OPTIMIZEFLAG_2 = -O0
2d611b5c
VS
84endif
85ifeq ($(BUILD),release)
b17c1746 86__OPTIMIZEFLAG_2 = -O2
2d611b5c 87endif
8c9f8f91
JS
88ifeq ($(USE_RTTI),0)
89__RTTIFLAG_5 = -fno-rtti
2d611b5c 90endif
8c9f8f91
JS
91ifeq ($(USE_RTTI),1)
92__RTTIFLAG_5 =
2d611b5c 93endif
b17c1746 94ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 95__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
96endif
97ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 98__EXCEPTIONSFLAG_6 =
b17c1746
DE
99endif
100ifeq ($(WXUNIV),1)
101__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102endif
103ifeq ($(WXUNIV),1)
104__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
105endif
106ifeq ($(BUILD),debug)
107ifeq ($(DEBUG_FLAG),default)
108__DEBUG_DEFINE_p = -D__WXDEBUG__
109endif
110endif
111ifeq ($(DEBUG_FLAG),1)
112__DEBUG_DEFINE_p = -D__WXDEBUG__
113endif
114ifeq ($(BUILD),debug)
115ifeq ($(DEBUG_FLAG),default)
116__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
117endif
118endif
119ifeq ($(DEBUG_FLAG),1)
120__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121endif
8c9f8f91
JS
122ifeq ($(USE_EXCEPTIONS),0)
123__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
124endif
125ifeq ($(USE_EXCEPTIONS),0)
126__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
127endif
128ifeq ($(USE_RTTI),0)
129__RTTI_DEFINE_p = -DwxNO_RTTI
130endif
131ifeq ($(USE_RTTI),0)
132__RTTI_DEFINE_p_1 = --define wxNO_RTTI
133endif
134ifeq ($(USE_THREADS),0)
135__THREAD_DEFINE_p = -DwxNO_THREADS
136endif
137ifeq ($(USE_THREADS),0)
138__THREAD_DEFINE_p_1 = --define wxNO_THREADS
139endif
b17c1746
DE
140ifeq ($(UNICODE),1)
141__UNICODE_DEFINE_p = -D_UNICODE
142endif
143ifeq ($(UNICODE),1)
144__UNICODE_DEFINE_p_1 = --define _UNICODE
145endif
2113bc77
MW
146ifeq ($(MSLU),1)
147__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
148endif
149ifeq ($(MSLU),1)
150__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
151endif
2d611b5c
VS
152ifeq ($(SHARED),1)
153__DLLFLAG_p = -DWXUSINGDLL
154endif
155ifeq ($(SHARED),1)
156__DLLFLAG_p_1 = --define WXUSINGDLL
157endif
b17c1746
DE
158ifeq ($(MONOLITHIC),0)
159__WXLIB_ADV_p = \
c33fae85 160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 161endif
b17c1746
DE
162ifeq ($(MONOLITHIC),0)
163__WXLIB_HTML_p = \
c33fae85 164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 165endif
b17c1746
DE
166ifeq ($(MONOLITHIC),0)
167__WXLIB_CORE_p = \
c33fae85 168 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 169endif
b17c1746 170ifeq ($(MONOLITHIC),0)
c33fae85
RN
171__WXLIB_BASE_p = \
172 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 173endif
b17c1746
DE
174ifeq ($(MONOLITHIC),1)
175__WXLIB_MONO_p = \
c33fae85 176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c
VS
177endif
178ifeq ($(USE_GUI),1)
9c2d002b 179__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 180endif
b17c1746 181ifeq ($(USE_GUI),1)
9c2d002b 182__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 183endif
b17c1746 184ifeq ($(USE_GUI),1)
9c2d002b 185__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
2d611b5c 186endif
19c35fa5
VS
187ifeq ($(MSLU),1)
188__UNICOWS_LIB_p = -lunicows
189endif
b17c1746
DE
190ifeq ($(BUILD),debug)
191ifeq ($(DEBUG_INFO),default)
192__DEBUGINFO = -g
2d611b5c 193endif
ec08d395 194endif
b17c1746
DE
195ifeq ($(BUILD),release)
196ifeq ($(DEBUG_INFO),default)
197__DEBUGINFO =
2d611b5c 198endif
2d611b5c 199endif
b17c1746
DE
200ifeq ($(DEBUG_INFO),0)
201__DEBUGINFO =
202endif
203ifeq ($(DEBUG_INFO),1)
204__DEBUGINFO = -g
2d611b5c 205endif
8c9f8f91
JS
206ifeq ($(USE_THREADS),0)
207__THREADSFLAG =
208endif
209ifeq ($(USE_THREADS),1)
210__THREADSFLAG = -mthreads
211endif
2d611b5c 212
2d611b5c
VS
213
214all: $(OBJS)
215$(OBJS):
216 -if not exist $(OBJS) mkdir $(OBJS)
217
218### Targets: ###
219
34f7e40f 220all: $(OBJS)\studio.exe data
2d611b5c 221
b17c1746
DE
222clean:
223 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 224 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746 225 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
2d611b5c 226
b17c1746 227$(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o
8c9f8f91 228 $(CXX) -o $@ $(STUDIO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated $(__WXLIB_ADV_p) $(__WXLIB_HTML_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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
2d611b5c 229
b17c1746
DE
230data:
231 if not exist $(OBJS) mkdir $(OBJS)
232 for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
233
234$(OBJS)\studio_studio.o: ./studio.cpp
0d90d6ea 235 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 236
1c3a6972 237$(OBJS)\studio_doc.o: ./doc.cpp
0d90d6ea 238 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 239
b17c1746 240$(OBJS)\studio_shapes.o: ./shapes.cpp
0d90d6ea 241 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 242
b17c1746 243$(OBJS)\studio_symbols.o: ./symbols.cpp
0d90d6ea 244 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 245
b17c1746 246$(OBJS)\studio_view.o: ./view.cpp
0d90d6ea 247 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 248
b17c1746 249$(OBJS)\studio_cspalette.o: ./cspalette.cpp
0d90d6ea 250 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 251
b17c1746 252$(OBJS)\studio_mainfrm.o: ./mainfrm.cpp
0d90d6ea 253 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 254
b17c1746 255$(OBJS)\studio_project.o: ./project.cpp
0d90d6ea 256 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 257
b17c1746 258$(OBJS)\studio_dialogs.o: ./dialogs.cpp
0d90d6ea 259 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 260
b17c1746 261$(OBJS)\studio_csprint.o: ./csprint.cpp
0d90d6ea 262 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 263
b17c1746 264$(OBJS)\studio_studio_rc.o: ./studio.rc
2113bc77 265 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) --include-dir ./../../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../../samples --define NOPCH --include-dir ./../../../include
2d611b5c
VS
266
267.PHONY: all clean data
b14abf14 268
8c9f8f91 269
0d90d6ea
JS
270# Dependencies tracking:
271-include $(OBJS)/*.d