]>
Commit | Line | Data |
---|---|---|
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 |
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 | HOST_SUFFIX = @HOST_SUFFIX@ | |
22 | LDFLAGS = @LDFLAGS@ | |
23 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
24 | RESCOMP = @RESCOMP@ | |
25 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ | |
ab892b95 | 26 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
e93c6860 VS |
27 | SETFILE = @SETFILE@ |
28 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ | |
29 | TOOLKIT = @TOOLKIT@ | |
30 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
31 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
32 | srcdir = @srcdir@ | |
33 | top_builddir = @top_builddir@ | |
34 | top_srcdir = @top_srcdir@ | |
335258dc | 35 | |
e93c6860 | 36 | ### Variables: ### |
335258dc | 37 | |
e93c6860 VS |
38 | LIBDIRNAME = $(top_builddir)lib |
39 | PENGUIN_CFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
40 | -I$(top_srcdir)/include $(__INC_TIFF_p) $(__INC_JPEG_p) $(__INC_PNG_p) \ | |
41 | $(__INC_ZLIB_p) $(__INC_ODBC_p) $(__INC_REGEX_p) $(__INC_EXPAT_p) \ | |
ab892b95 | 42 | -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../../samples $(CFLAGS) |
e93c6860 VS |
43 | PENGUIN_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
44 | -I$(top_srcdir)/include $(__INC_TIFF_p) $(__INC_JPEG_p) $(__INC_PNG_p) \ | |
45 | $(__INC_ZLIB_p) $(__INC_ODBC_p) $(__INC_REGEX_p) $(__INC_EXPAT_p) \ | |
ab892b95 | 46 | -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../../samples $(CXXFLAGS) |
e93c6860 VS |
47 | PENGUIN_OBJECTS = \ |
48 | penguin_penguin.o \ | |
49 | penguin_lw.o \ | |
50 | penguin_trackball.o \ | |
51 | $(__penguin___win32rc) | |
335258dc | 52 | |
e93c6860 | 53 | ### Conditionally set variables: ### |
335258dc | 54 | |
e93c6860 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) | |
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@__INC_EXPAT_p = -I$(top_srcdir)/src/expat/lib | |
70 | @COND_WXUSE_EXPAT_BUILTIN@__INC_EXPAT_p_1 = -i $(top_srcdir)/src/expat/lib | |
71 | @COND_WXUSE_EXPAT_BUILTIN@__INC_EXPAT_p_2 = \ | |
72 | @COND_WXUSE_EXPAT_BUILTIN@ --include-dir $(top_srcdir)/src/expat/lib | |
73 | @COND_WXUSE_LIBJPEG_BUILTIN@__INC_JPEG_p = -I$(top_srcdir)/src/jpeg | |
74 | @COND_WXUSE_LIBJPEG_BUILTIN@__INC_JPEG_p_1 = -i $(top_srcdir)/src/jpeg | |
75 | @COND_WXUSE_LIBJPEG_BUILTIN@__INC_JPEG_p_2 = \ | |
76 | @COND_WXUSE_LIBJPEG_BUILTIN@ --include-dir $(top_srcdir)/src/jpeg | |
77 | @COND_WXUSE_ODBC_BUILTIN@__INC_ODBC_p = -I$(top_srcdir)/src/odbc | |
78 | @COND_WXUSE_ODBC_BUILTIN@__INC_ODBC_p_1 = -i $(top_srcdir)/src/odbc | |
79 | @COND_WXUSE_ODBC_BUILTIN@__INC_ODBC_p_2 = \ | |
80 | @COND_WXUSE_ODBC_BUILTIN@ --include-dir $(top_srcdir)/src/odbc | |
81 | @COND_WXUSE_LIBPNG_BUILTIN@__INC_PNG_p = -I$(top_srcdir)/src/png | |
82 | @COND_WXUSE_LIBPNG_BUILTIN@__INC_PNG_p_1 = -i $(top_srcdir)/src/png | |
83 | @COND_WXUSE_LIBPNG_BUILTIN@__INC_PNG_p_2 = \ | |
84 | @COND_WXUSE_LIBPNG_BUILTIN@ --include-dir $(top_srcdir)/src/png | |
85 | @COND_WXUSE_REGEX_BUILTIN@__INC_REGEX_p = -I$(top_srcdir)/src/regex | |
86 | @COND_WXUSE_REGEX_BUILTIN@__INC_REGEX_p_1 = -i $(top_srcdir)/src/regex | |
87 | @COND_WXUSE_REGEX_BUILTIN@__INC_REGEX_p_2 = \ | |
88 | @COND_WXUSE_REGEX_BUILTIN@ --include-dir $(top_srcdir)/src/regex | |
89 | @COND_WXUSE_LIBTIFF_BUILTIN@__INC_TIFF_p = -I$(top_srcdir)/src/tiff | |
90 | @COND_WXUSE_LIBTIFF_BUILTIN@__INC_TIFF_p_1 = -i $(top_srcdir)/src/tiff | |
91 | @COND_WXUSE_LIBTIFF_BUILTIN@__INC_TIFF_p_2 = \ | |
92 | @COND_WXUSE_LIBTIFF_BUILTIN@ --include-dir $(top_srcdir)/src/tiff | |
93 | @COND_WXUSE_ZLIB_BUILTIN@__INC_ZLIB_p = -I$(top_srcdir)/src/zlib | |
94 | @COND_WXUSE_ZLIB_BUILTIN@__INC_ZLIB_p_1 = -i $(top_srcdir)/src/zlib | |
95 | @COND_WXUSE_ZLIB_BUILTIN@__INC_ZLIB_p_2 = \ | |
96 | @COND_WXUSE_ZLIB_BUILTIN@ --include-dir $(top_srcdir)/src/zlib | |
97 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ | |
98 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
99 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ | |
100 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
101 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
102 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ | |
103 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
104 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ | |
105 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
106 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
107 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \ | |
108 | @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
109 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ | |
110 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
111 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
112 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ | |
113 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
114 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ | |
115 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include \ | |
116 | $(__INC_TIFF_p_1) $(__INC_JPEG_p_1) $(__INC_PNG_p_1) $(__INC_ZLIB_p_1) \ | |
117 | $(__INC_ODBC_p_1) $(__INC_REGEX_p_1) $(__INC_EXPAT_p_1) -i $(srcdir) \ | |
ab892b95 VS |
118 | $(__DLLFLAG_p_1) -i $(srcdir)/../../../samples -o penguin$(EXEEXT) Carbon.r \ |
119 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r | |
e93c6860 VS |
120 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1) |
121 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = \ | |
122 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
123 | COND_MONOLITHIC_0___WXLIB_CORE_p = \ | |
124 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX) | |
125 | @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p) | |
126 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ | |
127 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
128 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) | |
129 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
130 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ | |
131 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ | |
132 | @COND_PLATFORM_MAC_1@__penguin___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) | |
133 | @COND_PLATFORM_MAC_1@__penguin___mac_setfilecmd = \ | |
134 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C penguin$(EXEEXT) | |
135 | @COND_PLATFORM_WIN32_1@__penguin___win32rc = penguin_penguin_rc.o | |
ab892b95 | 136 | @COND_PLATFORM_MACOSX_1@__penguin_bundle___depname = penguin_bundle |
e93c6860 VS |
137 | |
138 | ### Targets: ### | |
139 | ||
ab892b95 | 140 | all: penguin$(EXEEXT) $(__penguin_bundle___depname) data |
e93c6860 VS |
141 | |
142 | clean: | |
ab892b95 | 143 | rm -rf ./.deps ./.pch |
e93c6860 VS |
144 | rm -f ./*.o |
145 | rm -f penguin$(EXEEXT) | |
ab892b95 | 146 | rm -rf penguin.app |
e93c6860 VS |
147 | |
148 | data: | |
149 | @mkdir -p . | |
150 | @for f in penguin.lwo; do \ | |
151 | if test \( ! -s ./$$f \) -o \( $(srcdir)/$$f -nt ./$$f \) ; then \ | |
152 | cp -pRf $(srcdir)/$$f . ; \ | |
153 | fi; \ | |
154 | done | |
155 | ||
156 | distclean: clean | |
ab892b95 | 157 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
e93c6860 VS |
158 | |
159 | install: all | |
160 | ||
161 | install-strip: install | |
162 | ||
163 | penguin$(EXEEXT): $(PENGUIN_OBJECTS) $(__penguin___win32rc) | |
164 | $(CXX) -o $@ $(PENGUIN_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gl-2.5$(HOST_SUFFIX) $(__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) | |
165 | $(__penguin___mac_rezcmd) | |
166 | $(__penguin___mac_setfilecmd) | |
ab892b95 VS |
167 | $(SAMPLES_RPATH_POSTLINK) |
168 | ||
169 | penguin.app/Contents: penguin$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns | |
170 | mkdir -p penguin.app/Contents | |
171 | mkdir -p penguin.app/Contents/MacOS | |
172 | mkdir -p penguin.app/Contents/Resources | |
173 | ||
174 | ||
175 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
176 | -e "s/EXECUTABLE/penguin/" \ | |
177 | -e "s/VERSION/2.5.0/" \ | |
178 | $(top_srcdir)/src/mac/Info.plist.in >penguin.app/Contents/Info.plist | |
179 | ||
180 | ||
181 | echo -n "APPL????" >penguin.app/Contents/PkgInfo | |
182 | ||
183 | ||
184 | ln -f penguin$(EXEEXT) penguin.app/Contents/MacOS/penguin | |
185 | ||
186 | ||
187 | ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc penguin.app/Contents/Resources/penguin.rsrc | |
188 | ln -f $(top_srcdir)/src/mac/wxmac.icns penguin.app/Contents/Resources/wxmac.icns | |
189 | ||
190 | @COND_PLATFORM_MACOSX_1@penguin_bundle: penguin.app/Contents | |
e93c6860 VS |
191 | |
192 | penguin_lw.o: $(srcdir)/lw.cpp | |
193 | $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $< | |
194 | ||
195 | penguin_penguin.o: $(srcdir)/penguin.cpp | |
196 | $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $< | |
197 | ||
198 | penguin_penguin_rc.o: $(srcdir)/penguin.rc | |
ab892b95 | 199 | $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(top_srcdir)/include $(__INC_TIFF_p_2) $(__INC_JPEG_p_2) $(__INC_PNG_p_2) $(__INC_ZLIB_p_2) $(__INC_ODBC_p_2) $(__INC_REGEX_p_2) $(__INC_EXPAT_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../../samples |
e93c6860 VS |
200 | |
201 | penguin_trackball.o: $(srcdir)/trackball.c | |
202 | $(CCC) -c -o $@ $(PENGUIN_CFLAGS) $< | |
203 | ||
204 | uninstall: | |
205 | ||
206 | ||
207 | # Include dependency info, if present: | |
208 | @IF_GNU_MAKE@-include .deps/*.d | |
209 | ||
ab892b95 | 210 | .PHONY: all clean data distclean install penguin_bundle uninstall |