]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/studio/makefile.gcc
Sample update - wxTE_AUTO_URL from Mart R. [patch 1126182]
[wxWidgets.git] / contrib / samples / ogl / studio / makefile.gcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (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
c33fae85 15WX_RELEASE_NODOT = 25
2d611b5c
VS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = .\..\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
34f7e40f
JS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 21STUDIO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
2d611b5c 22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
b14abf14 23 $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
c33fae85 24 $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include \
b14abf14
JS
25 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy \
26 $(CPPFLAGS) $(CXXFLAGS)
34f7e40f
JS
27STUDIO_OBJECTS = \
28 $(OBJS)\studio_studio.o \
29 $(OBJS)\studio_doc.o \
30 $(OBJS)\studio_shapes.o \
31 $(OBJS)\studio_symbols.o \
32 $(OBJS)\studio_view.o \
33 $(OBJS)\studio_cspalette.o \
34 $(OBJS)\studio_mainfrm.o \
35 $(OBJS)\studio_project.o \
36 $(OBJS)\studio_dialogs.o \
37 $(OBJS)\studio_csprint.o \
38 $(OBJS)\studio_studio_rc.o
2d611b5c
VS
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(BUILD),debug)
52ifeq ($(DEBUG_FLAG),default)
53WXDEBUGFLAG = d
54endif
55endif
56ifeq ($(DEBUG_FLAG),1)
57WXDEBUGFLAG = d
58endif
2d611b5c
VS
59ifeq ($(UNICODE),1)
60WXUNICODEFLAG = u
61endif
62ifeq ($(WXUNIV),1)
63WXUNIVNAME = univ
64endif
b17c1746
DE
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
2d611b5c 67endif
b14abf14
JS
68ifeq ($(SHARED),0)
69LIBTYPE_SUFFIX = lib
70endif
71ifeq ($(SHARED),1)
72LIBTYPE_SUFFIX = dll
73endif
dd65d8c8
RN
74ifeq ($(MONOLITHIC),0)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(MONOLITHIC),1)
78EXTRALIBS_FOR_BASE =
79endif
b17c1746
DE
80ifeq ($(BUILD),debug)
81__OPTIMIZEFLAG_2 = -O0
2d611b5c
VS
82endif
83ifeq ($(BUILD),release)
b17c1746 84__OPTIMIZEFLAG_2 = -O2
2d611b5c 85endif
b17c1746
DE
86ifeq ($(USE_EXCEPTIONS),0)
87__EXCEPTIONSFLAG_4 = -fno-rtti
2d611b5c 88endif
b17c1746
DE
89ifeq ($(USE_EXCEPTIONS),1)
90__EXCEPTIONSFLAG_4 =
2d611b5c 91endif
b17c1746
DE
92ifeq ($(USE_EXCEPTIONS),0)
93__EXCEPTIONSFLAG_5 = -fno-exceptions
94endif
95ifeq ($(USE_EXCEPTIONS),1)
96__EXCEPTIONSFLAG_5 =
97endif
98ifeq ($(WXUNIV),1)
99__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
103endif
104ifeq ($(BUILD),debug)
105ifeq ($(DEBUG_FLAG),default)
106__DEBUG_DEFINE_p = -D__WXDEBUG__
107endif
108endif
109ifeq ($(DEBUG_FLAG),1)
110__DEBUG_DEFINE_p = -D__WXDEBUG__
111endif
112ifeq ($(BUILD),debug)
113ifeq ($(DEBUG_FLAG),default)
114__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
115endif
116endif
117ifeq ($(DEBUG_FLAG),1)
118__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
119endif
b17c1746
DE
120ifeq ($(UNICODE),1)
121__UNICODE_DEFINE_p = -D_UNICODE
122endif
123ifeq ($(UNICODE),1)
124__UNICODE_DEFINE_p_1 = --define _UNICODE
125endif
2d611b5c
VS
126ifeq ($(SHARED),1)
127__DLLFLAG_p = -DWXUSINGDLL
128endif
129ifeq ($(SHARED),1)
130__DLLFLAG_p_1 = --define WXUSINGDLL
131endif
b17c1746
DE
132ifeq ($(MONOLITHIC),0)
133__WXLIB_ADV_p = \
c33fae85 134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 135endif
b17c1746
DE
136ifeq ($(MONOLITHIC),0)
137__WXLIB_HTML_p = \
c33fae85 138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 139endif
b17c1746
DE
140ifeq ($(MONOLITHIC),0)
141__WXLIB_CORE_p = \
c33fae85 142 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 143endif
b17c1746 144ifeq ($(MONOLITHIC),0)
c33fae85
RN
145__WXLIB_BASE_p = \
146 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 147endif
b17c1746
DE
148ifeq ($(MONOLITHIC),1)
149__WXLIB_MONO_p = \
c33fae85 150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c
VS
151endif
152ifeq ($(USE_GUI),1)
9c2d002b 153__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 154endif
b17c1746 155ifeq ($(USE_GUI),1)
9c2d002b 156__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 157endif
b17c1746 158ifeq ($(USE_GUI),1)
9c2d002b 159__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
2d611b5c 160endif
19c35fa5
VS
161ifeq ($(MSLU),1)
162__UNICOWS_LIB_p = -lunicows
163endif
b17c1746
DE
164ifeq ($(BUILD),debug)
165ifeq ($(DEBUG_INFO),default)
166__DEBUGINFO = -g
2d611b5c 167endif
ec08d395 168endif
b17c1746
DE
169ifeq ($(BUILD),release)
170ifeq ($(DEBUG_INFO),default)
171__DEBUGINFO =
2d611b5c 172endif
2d611b5c 173endif
b17c1746
DE
174ifeq ($(DEBUG_INFO),0)
175__DEBUGINFO =
176endif
177ifeq ($(DEBUG_INFO),1)
178__DEBUGINFO = -g
2d611b5c
VS
179endif
180
2d611b5c
VS
181
182all: $(OBJS)
183$(OBJS):
184 -if not exist $(OBJS) mkdir $(OBJS)
185
186### Targets: ###
187
34f7e40f 188all: $(OBJS)\studio.exe data
2d611b5c 189
b17c1746
DE
190clean:
191 -if exist $(OBJS)\*.o del $(OBJS)\*.o
192 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
2d611b5c 193
b17c1746 194$(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o
b14abf14 195 $(CXX) -o $@ $(STUDIO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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 196
b17c1746
DE
197data:
198 if not exist $(OBJS) mkdir $(OBJS)
199 for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
200
201$(OBJS)\studio_studio.o: ./studio.cpp
34f7e40f 202 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 203
1c3a6972 204$(OBJS)\studio_doc.o: ./doc.cpp
34f7e40f 205 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 206
b17c1746 207$(OBJS)\studio_shapes.o: ./shapes.cpp
34f7e40f 208 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 209
b17c1746 210$(OBJS)\studio_symbols.o: ./symbols.cpp
34f7e40f 211 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 212
b17c1746 213$(OBJS)\studio_view.o: ./view.cpp
34f7e40f 214 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 215
b17c1746 216$(OBJS)\studio_cspalette.o: ./cspalette.cpp
34f7e40f 217 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 218
b17c1746 219$(OBJS)\studio_mainfrm.o: ./mainfrm.cpp
34f7e40f 220 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 221
b17c1746 222$(OBJS)\studio_project.o: ./project.cpp
34f7e40f 223 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 224
b17c1746
DE
225$(OBJS)\studio_dialogs.o: ./dialogs.cpp
226 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 227
b17c1746
DE
228$(OBJS)\studio_csprint.o: ./csprint.cpp
229 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
2d611b5c 230
b17c1746 231$(OBJS)\studio_studio_rc.o: ./studio.rc
b14abf14 232 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../../samples --define NOPCH --include-dir ./../../../include
2d611b5c
VS
233
234.PHONY: all clean data
b14abf14 235