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