]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/Makefile.in
link against oleacc.lib (needed by wxUSE_ACCESSIBILITY)
[wxWidgets.git] / samples / opengl / penguin / Makefile.in
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
8 @MAKE_SET@
9
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
12 INSTALL = @INSTALL@
13 CC = @CC@
14 CFLAGS = @CFLAGS@
15 CPPFLAGS = @CPPFLAGS@
16 CXX = @CXX@
17 CXXFLAGS = @CXXFLAGS@
18 EXEEXT = @EXEEXT@
19 EXTRALIBS = @EXTRALIBS@
20 EXTRALIBS_GUI = @EXTRALIBS_GUI@
21 EXTRALIBS_OPENGL = @EXTRALIBS_OPENGL@
22 HOST_SUFFIX = @HOST_SUFFIX@
23 LDFLAGS = @LDFLAGS@
24 LDFLAGS_GUI = @LDFLAGS_GUI@
25 RESCOMP = @RESCOMP@
26 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
27 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
28 SETFILE = @SETFILE@
29 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
30 TOOLKIT = @TOOLKIT@
31 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
32 TOOLKIT_VERSION = @TOOLKIT_VERSION@
33 srcdir = @srcdir@
34 top_builddir = @top_builddir@
35 top_srcdir = @top_srcdir@
36
37 ### Variables: ###
38
39 LIBDIRNAME = $(top_builddir)lib
40 PENGUIN_CFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
41 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
42 -I$(srcdir)/../../../samples $(CFLAGS)
43 PENGUIN_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
44 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
45 -I$(srcdir)/../../../samples $(CXXFLAGS)
46 PENGUIN_OBJECTS = \
47 penguin_penguin.o \
48 penguin_lw.o \
49 penguin_trackball.o \
50 $(__penguin___win32rc)
51 WX_VERSION = 2.5.0
52
53 ### Conditionally set variables: ###
54
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)
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
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)
86 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
87 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
88 $(__DLLFLAG_p_1) -i $(srcdir)/../../../samples -o penguin$(EXEEXT) Carbon.r \
89 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r
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)
93 COND_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)
96 COND_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)
103 @COND_PLATFORM_MAC_1@__penguin___mac_setfilecmd = \
104 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C penguin$(EXEEXT)
105 @COND_PLATFORM_OS2_1@__penguin___os2_emxbindcmd = \
106 @COND_PLATFORM_OS2_1@ emxbind -ep penguin$(EXEEXT)
107 @COND_PLATFORM_WIN32_1@__penguin___win32rc = penguin_penguin_rc.o
108 @COND_PLATFORM_MACOSX_1@__penguin_bundle___depname = penguin_bundle
109
110 ### Targets: ###
111
112 all: penguin$(EXEEXT) $(__penguin_bundle___depname) data
113
114 clean:
115 rm -rf ./.deps ./.pch
116 rm -f ./*.o
117 rm -f penguin$(EXEEXT)
118 rm -rf penguin.app
119
120 data:
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
128 distclean: clean
129 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
130
131 install: all
132
133 install-strip: install
134
135 penguin$(EXEEXT): $(PENGUIN_OBJECTS) $(__penguin___win32rc)
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)
137 $(__penguin___mac_rezcmd)
138 $(__penguin___mac_setfilecmd)
139 $(__penguin___os2_emxbindcmd)
140 $(SAMPLES_RPATH_POSTLINK)
141
142 penguin.app/Contents/PkgInfo: penguin$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns
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/" \
150 -e "s/VERSION/$(WX_VERSION)/" \
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
157 ln -f penguin$(EXEEXT) penguin.app/Contents/MacOS/penguin
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
163 @COND_PLATFORM_MACOSX_1@penguin_bundle: penguin.app/Contents/PkgInfo
164
165 penguin_lw.o: $(srcdir)/lw.cpp
166 $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $<
167
168 penguin_penguin.o: $(srcdir)/penguin.cpp
169 $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $<
170
171 penguin_penguin_rc.o: $(srcdir)/penguin.rc
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
173
174 penguin_trackball.o: $(srcdir)/trackball.c
175 $(CCC) -c -o $@ $(PENGUIN_CFLAGS) $<
176
177 uninstall:
178
179
180 # Include dependency info, if present:
181 @IF_GNU_MAKE@-include .deps/*.d
182
183 .PHONY: all clean data distclean install penguin_bundle uninstall