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