]>
Commit | Line | Data |
---|---|---|
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 |
10 | prefix = @prefix@ |
11 | exec_prefix = @exec_prefix@ | |
12 | INSTALL = @INSTALL@ | |
b17c1746 DE |
13 | EXEEXT = @EXEEXT@ |
14 | RESCOMP = @RESCOMP@ | |
15 | SETFILE = @SETFILE@ | |
16 | NM = @NM@ | |
17 | srcdir = @srcdir@ | |
18 | top_srcdir = @top_srcdir@ | |
19 | top_builddir = @top_builddir@ | |
20 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
e93c6860 | 21 | CC = @CC@ |
e93c6860 | 22 | CXX = @CXX@ |
b17c1746 | 23 | CFLAGS = @CFLAGS@ |
e93c6860 | 24 | CXXFLAGS = @CXXFLAGS@ |
b17c1746 DE |
25 | CPPFLAGS = @CPPFLAGS@ |
26 | LDFLAGS = @LDFLAGS@ | |
589e20d0 | 27 | WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@ |
b17c1746 DE |
28 | TOOLKIT = @TOOLKIT@ |
29 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
30 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
e93c6860 VS |
31 | EXTRALIBS = @EXTRALIBS@ |
32 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ | |
22cef566 | 33 | EXTRALIBS_OPENGL = @EXTRALIBS_OPENGL@ |
e93c6860 | 34 | HOST_SUFFIX = @HOST_SUFFIX@ |
e93c6860 | 35 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ |
ab892b95 | 36 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
335258dc | 37 | |
e93c6860 | 38 | ### Variables: ### |
335258dc | 39 | |
b71531ad | 40 | DESTDIR = |
4818141b | 41 | WX_RELEASE = 2.6 |
0d90d6ea | 42 | WX_VERSION = $(WX_RELEASE).2 |
e93c6860 | 43 | LIBDIRNAME = $(top_builddir)lib |
8c9f8f91 JS |
44 | PENGUIN_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) | |
48 | PENGUIN_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 | 52 | PENGUIN_OBJECTS = \ |
a4ad36cd | 53 | $(__penguin_os2_lib_res) \ |
e93c6860 VS |
54 | penguin_penguin.o \ |
55 | penguin_lw.o \ | |
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 |
95 | COND_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 | 105 | COND_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 | 108 | COND_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 |
112 | COND_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 |
128 | COND_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 | 133 | COND_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 | 142 | all: $(__penguin___depname) $(__penguin_bundle___depname) data |
e93c6860 | 143 | |
b17c1746 DE |
144 | install: all |
145 | ||
146 | uninstall: | |
147 | ||
148 | install-strip: install | |
149 | ||
e93c6860 | 150 | clean: |
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 | 156 | distclean: 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 | 166 | penguin.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 |
188 | data: |
189 | @mkdir -p . | |
190 | @for f in penguin.lwo; 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 | |
200 | penguin_penguin.o: $(srcdir)/penguin.cpp | |
b14abf14 | 201 | $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $(srcdir)/penguin.cpp |
e93c6860 | 202 | |
b17c1746 | 203 | penguin_lw.o: $(srcdir)/lw.cpp |
b14abf14 | 204 | $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $(srcdir)/lw.cpp |
e93c6860 VS |
205 | |
206 | penguin_trackball.o: $(srcdir)/trackball.c | |
b14abf14 | 207 | $(CCC) -c -o $@ $(PENGUIN_CFLAGS) $(srcdir)/trackball.c |
e93c6860 | 208 | |
b17c1746 | 209 | penguin_penguin_rc.o: $(srcdir)/penguin.rc |
8c9f8f91 | 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 |