]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/penguin/Makefile.in
Cleaned up some comments, reorganized some code
[wxWidgets.git] / samples / opengl / penguin / Makefile.in
CommitLineData
e93c6860
VS
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# =========================================================================
335258dc 6
335258dc 7
e93c6860 8@MAKE_SET@
335258dc 9
e93c6860
VS
10prefix = @prefix@
11exec_prefix = @exec_prefix@
12INSTALL = @INSTALL@
13CC = @CC@
14CFLAGS = @CFLAGS@
15CPPFLAGS = @CPPFLAGS@
16CXX = @CXX@
17CXXFLAGS = @CXXFLAGS@
b328fad3 18EXEEXT = @EXEEXT@
e93c6860
VS
19EXTRALIBS = @EXTRALIBS@
20EXTRALIBS_GUI = @EXTRALIBS_GUI@
22cef566 21EXTRALIBS_OPENGL = @EXTRALIBS_OPENGL@
e93c6860
VS
22HOST_SUFFIX = @HOST_SUFFIX@
23LDFLAGS = @LDFLAGS@
24LDFLAGS_GUI = @LDFLAGS_GUI@
25RESCOMP = @RESCOMP@
26SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
ab892b95 27SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
e93c6860
VS
28SETFILE = @SETFILE@
29TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
30TOOLKIT = @TOOLKIT@
31TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
32TOOLKIT_VERSION = @TOOLKIT_VERSION@
33srcdir = @srcdir@
34top_builddir = @top_builddir@
35top_srcdir = @top_srcdir@
335258dc 36
e93c6860 37### Variables: ###
335258dc 38
e93c6860
VS
39LIBDIRNAME = $(top_builddir)lib
40PENGUIN_CFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
75a0a7b7
VS
41 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
42 -I$(srcdir)/../../../samples $(CFLAGS)
e93c6860 43PENGUIN_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
75a0a7b7
VS
44 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
45 -I$(srcdir)/../../../samples $(CXXFLAGS)
e93c6860
VS
46PENGUIN_OBJECTS = \
47 penguin_penguin.o \
48 penguin_lw.o \
49 penguin_trackball.o \
50 $(__penguin___win32rc)
75a0a7b7 51WX_VERSION = 2.5.0
335258dc 52
e93c6860 53### Conditionally set variables: ###
335258dc 54
b328fad3
VS
55@COND_DEPS_TRACKING_0@CCC = $(CC)
56@COND_DEPS_TRACKING_1@CCC = $(top_builddir)./bk-deps $(CC)
57@COND_DEPS_TRACKING_0@CXXC = $(CXX)
58@COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
e93c6860
VS
59@COND_USE_GUI_0@PORTNAME = base
60@COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
61@COND_TOOLKIT_MAC@WXBASEPORT = _carbon
62@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
63@COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
64@COND_UNICODE_1@WXUNICODEFLAG = u
65@COND_WXUNIV_1@WXUNIVNAME = univ
66@COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
67@COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
68@COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
e93c6860
VS
69@COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
70@COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
71@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
72@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
73@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
74@COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
75@COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
76@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
77@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
78@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
79@COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
80@COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
81@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
82@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
83@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
84@COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
85@COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
86COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
75a0a7b7 87 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
b328fad3 88 $(__DLLFLAG_p_1) -i $(srcdir)/../../../samples -o penguin$(EXEEXT) Carbon.r \
ab892b95 89 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r
e93c6860
VS
90@COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
91@COND_MONOLITHIC_0@__WXLIB_BASE_p = \
92@COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
93COND_MONOLITHIC_0___WXLIB_CORE_p = \
94 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
95@COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
96COND_MONOLITHIC_1___WXLIB_MONO_p = \
97 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
98@COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
99@COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100@COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
101@COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
102@COND_PLATFORM_MAC_1@__penguin___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
b328fad3
VS
103@COND_PLATFORM_MAC_1@__penguin___mac_setfilecmd = \
104@COND_PLATFORM_MAC_1@ $(SETFILE) -a C penguin$(EXEEXT)
22cef566
VS
105@COND_PLATFORM_OS2_1@__penguin___os2_emxbindcmd = \
106@COND_PLATFORM_OS2_1@ emxbind -ep penguin$(EXEEXT)
e93c6860 107@COND_PLATFORM_WIN32_1@__penguin___win32rc = penguin_penguin_rc.o
ab892b95 108@COND_PLATFORM_MACOSX_1@__penguin_bundle___depname = penguin_bundle
e93c6860
VS
109
110### Targets: ###
111
b328fad3 112all: penguin$(EXEEXT) $(__penguin_bundle___depname) data
e93c6860
VS
113
114clean:
ab892b95 115 rm -rf ./.deps ./.pch
e93c6860 116 rm -f ./*.o
b328fad3 117 rm -f penguin$(EXEEXT)
ab892b95 118 rm -rf penguin.app
e93c6860
VS
119
120data:
121 @mkdir -p .
122 @for f in penguin.lwo; do \
123 if test \( ! -s ./$$f \) -o \( $(srcdir)/$$f -nt ./$$f \) ; then \
124 cp -pRf $(srcdir)/$$f . ; \
125 fi; \
126 done
127
128distclean: clean
ab892b95 129 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
e93c6860
VS
130
131install: all
132
133install-strip: install
134
b328fad3 135penguin$(EXEEXT): $(PENGUIN_OBJECTS) $(__penguin___win32rc)
22cef566 136 $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gl-2.5$(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) $(EXTRALIBS_GUI)
e93c6860
VS
137 $(__penguin___mac_rezcmd)
138 $(__penguin___mac_setfilecmd)
22cef566 139 $(__penguin___os2_emxbindcmd)
ab892b95
VS
140 $(SAMPLES_RPATH_POSTLINK)
141
1c3a6972 142penguin.app/Contents/PkgInfo: penguin$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns
ab892b95
VS
143 mkdir -p penguin.app/Contents
144 mkdir -p penguin.app/Contents/MacOS
145 mkdir -p penguin.app/Contents/Resources
146
147
148 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
149 -e "s/EXECUTABLE/penguin/" \
75a0a7b7 150 -e "s/VERSION/$(WX_VERSION)/" \
ab892b95
VS
151 $(top_srcdir)/src/mac/Info.plist.in >penguin.app/Contents/Info.plist
152
153
154 echo -n "APPL????" >penguin.app/Contents/PkgInfo
155
156
b328fad3 157 ln -f penguin$(EXEEXT) penguin.app/Contents/MacOS/penguin
ab892b95
VS
158
159
160 ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc penguin.app/Contents/Resources/penguin.rsrc
161 ln -f $(top_srcdir)/src/mac/wxmac.icns penguin.app/Contents/Resources/wxmac.icns
162
1c3a6972 163@COND_PLATFORM_MACOSX_1@penguin_bundle: penguin.app/Contents/PkgInfo
e93c6860
VS
164
165penguin_lw.o: $(srcdir)/lw.cpp
b328fad3 166 $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $<
e93c6860
VS
167
168penguin_penguin.o: $(srcdir)/penguin.cpp
b328fad3 169 $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $<
e93c6860
VS
170
171penguin_penguin_rc.o: $(srcdir)/penguin.rc
75a0a7b7 172 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(top_srcdir)/include --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../../samples
e93c6860
VS
173
174penguin_trackball.o: $(srcdir)/trackball.c
b328fad3 175 $(CCC) -c -o $@ $(PENGUIN_CFLAGS) $<
e93c6860
VS
176
177uninstall:
178
179
180# Include dependency info, if present:
181@IF_GNU_MAKE@-include .deps/*.d
182
ab892b95 183.PHONY: all clean data distclean install penguin_bundle uninstall