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