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