]>
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@ | |
b328fad3 | 18 | EXEEXT = @EXEEXT@ |
e93c6860 VS |
19 | EXTRALIBS = @EXTRALIBS@ |
20 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ | |
22cef566 | 21 | EXTRALIBS_OPENGL = @EXTRALIBS_OPENGL@ |
e93c6860 VS |
22 | HOST_SUFFIX = @HOST_SUFFIX@ |
23 | LDFLAGS = @LDFLAGS@ | |
24 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
ec08d395 | 25 | NM = @NM@ |
e93c6860 VS |
26 | RESCOMP = @RESCOMP@ |
27 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ | |
ab892b95 | 28 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
e93c6860 VS |
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@ | |
335258dc | 37 | |
e93c6860 | 38 | ### Variables: ### |
335258dc | 39 | |
b71531ad | 40 | DESTDIR = |
e93c6860 | 41 | LIBDIRNAME = $(top_builddir)lib |
e1a098d1 | 42 | PENGUIN_CFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
75a0a7b7 | 43 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
e1a098d1 VS |
44 | -I$(srcdir)/../../../samples $(CPPFLAGS) $(CFLAGS) |
45 | PENGUIN_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
75a0a7b7 | 46 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
e1a098d1 | 47 | -I$(srcdir)/../../../samples $(CPPFLAGS) $(CXXFLAGS) |
e93c6860 | 48 | PENGUIN_OBJECTS = \ |
a4ad36cd | 49 | $(__penguin_os2_lib_res) \ |
e93c6860 VS |
50 | penguin_penguin.o \ |
51 | penguin_lw.o \ | |
52 | penguin_trackball.o \ | |
53 | $(__penguin___win32rc) | |
ec08d395 | 54 | WX_VERSION = 2.5.1 |
335258dc | 55 | |
e93c6860 | 56 | ### Conditionally set variables: ### |
335258dc | 57 | |
b328fad3 VS |
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) | |
e93c6860 VS |
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 | |
e93c6860 VS |
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 \ | |
75a0a7b7 | 90 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \ |
b328fad3 | 91 | $(__DLLFLAG_p_1) -i $(srcdir)/../../../samples -o penguin$(EXEEXT) Carbon.r \ |
ec08d395 | 92 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r |
e93c6860 VS |
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) | |
b328fad3 VS |
106 | @COND_PLATFORM_MAC_1@__penguin___mac_setfilecmd = \ |
107 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C penguin$(EXEEXT) | |
ec08d395 JS |
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) | |
e93c6860 | 111 | @COND_PLATFORM_WIN32_1@__penguin___win32rc = penguin_penguin_rc.o |
ab892b95 | 112 | @COND_PLATFORM_MACOSX_1@__penguin_bundle___depname = penguin_bundle |
a4ad36cd VS |
113 | @COND_PLATFORM_OS2_1@__penguin_os2_lib_res = \ |
114 | @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res | |
e93c6860 VS |
115 | |
116 | ### Targets: ### | |
117 | ||
b328fad3 | 118 | all: penguin$(EXEEXT) $(__penguin_bundle___depname) data |
e93c6860 VS |
119 | |
120 | clean: | |
ab892b95 | 121 | rm -rf ./.deps ./.pch |
e93c6860 | 122 | rm -f ./*.o |
b328fad3 | 123 | rm -f penguin$(EXEEXT) |
ab892b95 | 124 | rm -rf penguin.app |
e93c6860 VS |
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 | |
ab892b95 | 135 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
e93c6860 VS |
136 | |
137 | install: all | |
138 | ||
139 | install-strip: install | |
140 | ||
b328fad3 | 141 | penguin$(EXEEXT): $(PENGUIN_OBJECTS) $(__penguin___win32rc) |
22cef566 | 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) |
e93c6860 VS |
143 | $(__penguin___mac_rezcmd) |
144 | $(__penguin___mac_setfilecmd) | |
22cef566 | 145 | $(__penguin___os2_emxbindcmd) |
ab892b95 VS |
146 | $(SAMPLES_RPATH_POSTLINK) |
147 | ||
ec08d395 | 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 |
ab892b95 VS |
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/" \ | |
75a0a7b7 | 156 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
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 | ||
b328fad3 | 163 | ln -f penguin$(EXEEXT) penguin.app/Contents/MacOS/penguin |
ab892b95 VS |
164 | |
165 | ||
a4ad36cd VS |
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 | |
ab892b95 | 168 | |
1c3a6972 | 169 | @COND_PLATFORM_MACOSX_1@penguin_bundle: penguin.app/Contents/PkgInfo |
e93c6860 VS |
170 | |
171 | penguin_lw.o: $(srcdir)/lw.cpp | |
b328fad3 | 172 | $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $< |
e93c6860 VS |
173 | |
174 | penguin_penguin.o: $(srcdir)/penguin.cpp | |
b328fad3 | 175 | $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $< |
e93c6860 VS |
176 | |
177 | penguin_penguin_rc.o: $(srcdir)/penguin.rc | |
ec08d395 | 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 |
e93c6860 VS |
179 | |
180 | penguin_trackball.o: $(srcdir)/trackball.c | |
b328fad3 | 181 | $(CCC) -c -o $@ $(PENGUIN_CFLAGS) $< |
e93c6860 VS |
182 | |
183 | uninstall: | |
184 | ||
185 | ||
186 | # Include dependency info, if present: | |
187 | @IF_GNU_MAKE@-include .deps/*.d | |
188 | ||
ab892b95 | 189 | .PHONY: all clean data distclean install penguin_bundle uninstall |