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