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