]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/Makefile.in
4983b43fdd5b497da9426a0a668d1c0aec29c594
[wxWidgets.git] / samples / opengl / penguin / Makefile.in
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.3 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7
8 @MAKE_SET@
9
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
12 datarootdir = @datarootdir@
13 INSTALL = @INSTALL@
14 EXEEXT = @EXEEXT@
15 WINDRES = @WINDRES@
16 REZ = @REZ@
17 SETFILE = @SETFILE@
18 NM = @NM@
19 BK_DEPS = @BK_DEPS@
20 srcdir = @srcdir@
21 top_srcdir = @top_srcdir@
22 LIBS = @LIBS@
23 LDFLAGS_GUI = @LDFLAGS_GUI@
24 CC = @CC@
25 CXX = @CXX@
26 CFLAGS = @CFLAGS@
27 CXXFLAGS = @CXXFLAGS@
28 CPPFLAGS = @CPPFLAGS@
29 LDFLAGS = @LDFLAGS@
30 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
31 TOOLKIT = @TOOLKIT@
32 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
33 TOOLKIT_VERSION = @TOOLKIT_VERSION@
34 TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@
35 EXTRALIBS = @EXTRALIBS@
36 EXTRALIBS_GUI = @EXTRALIBS_GUI@
37 EXTRALIBS_OPENGL = @EXTRALIBS_OPENGL@
38 CXXWARNINGS = @CXXWARNINGS@
39 HOST_SUFFIX = @HOST_SUFFIX@
40 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
41 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
42 wx_top_builddir = @wx_top_builddir@
43
44 ### Variables: ###
45
46 DESTDIR =
47 WX_RELEASE = 2.9
48 WX_VERSION = $(WX_RELEASE).0
49 LIBDIRNAME = $(wx_top_builddir)/lib
50 PENGUIN_CFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
51 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
52 -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../../samples $(CPPFLAGS) \
53 $(CFLAGS)
54 PENGUIN_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
55 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
56 -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../../samples $(CXXWARNINGS) \
57 $(CPPFLAGS) $(CXXFLAGS)
58 PENGUIN_OBJECTS = \
59 $(__penguin_os2_lib_res) \
60 penguin_penguin.o \
61 penguin_dxfrenderer.o \
62 penguin_trackball.o \
63 $(__penguin___win32rc)
64
65 ### Conditionally set variables: ###
66
67 @COND_DEPS_TRACKING_0@CCC = $(CC)
68 @COND_DEPS_TRACKING_1@CCC = $(BK_DEPS) $(CC)
69 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
70 @COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
71 @COND_USE_GUI_0@PORTNAME = base
72 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
73 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
74 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
75 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
76 @COND_UNICODE_1@WXUNICODEFLAG = u
77 @COND_WXUNIV_1@WXUNIVNAME = univ
78 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
79 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
80 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
81 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
82 @COND_USE_OPENGL_1@__penguin___depname = penguin$(EXEEXT)
83 @COND_PLATFORM_MAC_0@__penguin___mac_setfilecmd = @true
84 @COND_PLATFORM_MAC_1@__penguin___mac_setfilecmd = \
85 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C penguin$(EXEEXT)
86 @COND_PLATFORM_MAC_1@__penguin___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
87 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
88 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
89 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
90 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
91 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_1 = -d wxNO_EXCEPTIONS
92 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_2 = --define wxNO_EXCEPTIONS
93 @COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
94 @COND_USE_RTTI_0@__RTTI_DEFINE_p_1 = -d wxNO_RTTI
95 @COND_USE_RTTI_0@__RTTI_DEFINE_p_2 = --define wxNO_RTTI
96 @COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
97 @COND_USE_THREADS_0@__THREAD_DEFINE_p_1 = -d wxNO_THREADS
98 @COND_USE_THREADS_0@__THREAD_DEFINE_p_2 = --define wxNO_THREADS
99 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
100 @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
101 @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
102 COND_PLATFORM_OS2_1___penguin___os2_emxbindcmd = $(NM) penguin$(EXEEXT) | if \
103 grep -q pmwin.763 ; then emxbind -ep penguin$(EXEEXT) ; fi
104 @COND_PLATFORM_OS2_1@__penguin___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___penguin___os2_emxbindcmd)
105 @COND_TOOLKIT_MSW@__RCDEFDIR_p = -i \
106 @COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
107 @COND_TOOLKIT_MSW@__RCDEFDIR_p_1 = --include-dir \
108 @COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
109 @COND_PLATFORM_OS2_1@__penguin_os2_lib_res = \
110 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
111 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@__penguin_app_Contents_PkgInfo___depname \
112 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ = penguin.app/Contents/PkgInfo
113 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@__penguin_bundle___depname \
114 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ = penguin_bundle
115 @COND_TOOLKIT_COCOA@____penguin_BUNDLE_TGT_REF_DEP = \
116 @COND_TOOLKIT_COCOA@ $(__penguin_app_Contents_PkgInfo___depname)
117 @COND_TOOLKIT_MAC@____penguin_BUNDLE_TGT_REF_DEP = \
118 @COND_TOOLKIT_MAC@ $(__penguin_app_Contents_PkgInfo___depname)
119 COND_MONOLITHIC_0___WXLIB_CORE_p = \
120 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
121 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
122 COND_MONOLITHIC_0___WXLIB_BASE_p = \
123 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
124 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
125 @COND_PLATFORM_WIN32_1@__penguin___win32rc = penguin_penguin_rc.o
126 COND_MONOLITHIC_1___WXLIB_MONO_p = \
127 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
128 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
129 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
130 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
131 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
132 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
133 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
134 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
135 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
136 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
137 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
138 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
139 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
140 COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
141 -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
142 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
143 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
144 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
145 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(REZ) -d __DARWIN__ -t APPL -d \
146 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) \
147 $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \
148 $(srcdir)/../../../samples $(__RCDEFDIR_p) -i $(top_srcdir)/include -o \
149 penguin$(EXEEXT) Carbon.r sample.r
150 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
151
152 ### Targets: ###
153
154 all: $(__penguin___depname) $(__penguin_bundle___depname) data
155
156 install: all
157
158 uninstall:
159
160 install-strip: install
161
162 clean:
163 rm -rf ./.deps ./.pch
164 rm -f ./*.o
165 rm -f penguin$(EXEEXT)
166 rm -rf penguin.app
167
168 distclean: clean
169 rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
170
171 @COND_USE_OPENGL_1@penguin$(EXEEXT): $(PENGUIN_OBJECTS) $(__penguin___win32rc)
172 @COND_USE_OPENGL_1@ $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(LIBS) -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gl-$(WX_RELEASE)$(HOST_SUFFIX) $(EXTRALIBS_OPENGL) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE)
173 @COND_USE_OPENGL_1@ $(__penguin___mac_rezcmd)
174 @COND_USE_OPENGL_1@ $(__penguin___mac_setfilecmd)
175 @COND_USE_OPENGL_1@ $(__penguin___os2_emxbindcmd)
176 @COND_USE_OPENGL_1@ $(SAMPLES_RPATH_POSTLINK)
177
178 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@penguin.app/Contents/PkgInfo: $(__penguin___depname) $(top_srcdir)/src/osx/carbon/Info.plist.in $(top_srcdir)/src/osx/carbon/wxmac.icns
179 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ mkdir -p penguin.app/Contents
180 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ mkdir -p penguin.app/Contents/MacOS
181 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ mkdir -p penguin.app/Contents/Resources
182 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@
183 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@
184 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
185 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ -e "s/EXECUTABLE/penguin/" \
186 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ -e "s/VERSION/$(WX_VERSION)/" \
187 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ $(top_srcdir)/src/osx/carbon/Info.plist.in >penguin.app/Contents/Info.plist
188 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@
189 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@
190 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ echo -n "APPL????" >penguin.app/Contents/PkgInfo
191 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@
192 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@
193 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ ln -f penguin$(EXEEXT) penguin.app/Contents/MacOS/penguin
194 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@
195 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@
196 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@ cp -f $(top_srcdir)/src/osx/carbon/wxmac.icns penguin.app/Contents/Resources/wxmac.icns
197
198 @COND_PLATFORM_MACOSX_1_USE_OPENGL_1@penguin_bundle: $(____penguin_BUNDLE_TGT_REF_DEP)
199
200 data:
201 @mkdir -p .
202 @for f in penguin.dxf.gz; do \
203 if test ! -f ./$$f -a ! -d ./$$f ; \
204 then x=yep ; \
205 else x=`find $(srcdir)/$$f -newer ./$$f -print` ; \
206 fi; \
207 case "$$x" in ?*) \
208 cp -pRf $(srcdir)/$$f . ;; \
209 esac; \
210 done
211
212 penguin_penguin.o: $(srcdir)/penguin.cpp
213 $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $(srcdir)/penguin.cpp
214
215 penguin_dxfrenderer.o: $(srcdir)/dxfrenderer.cpp
216 $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $(srcdir)/dxfrenderer.cpp
217
218 penguin_trackball.o: $(srcdir)/trackball.c
219 $(CCC) -c -o $@ $(PENGUIN_CFLAGS) $(srcdir)/trackball.c
220
221 penguin_penguin_rc.o: $(srcdir)/penguin.rc
222 $(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) $(__EXCEPTIONS_DEFINE_p_2) $(__RTTI_DEFINE_p_2) $(__THREAD_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include
223
224
225 # Include dependency info, if present:
226 @IF_GNU_MAKE@-include .deps/*.d
227
228 .PHONY: all install uninstall clean distclean penguin_bundle data