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 # =========================================================================
11 exec_prefix = @exec_prefix@
17 EXTRALIBS = @EXTRALIBS@
18 EXTRALIBS_GUI = @EXTRALIBS_GUI@
19 EXTRALIBS_HTML = @EXTRALIBS_HTML@
20 HOST_SUFFIX = @HOST_SUFFIX@
22 LDFLAGS_GUI = @LDFLAGS_GUI@
25 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
26 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
28 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
30 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
31 TOOLKIT_VERSION = @TOOLKIT_VERSION@
33 top_builddir = @top_builddir@
34 top_srcdir = @top_srcdir@
39 FORTY_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
40 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
41 -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
43 $(__forty_os2_lib_res) \
53 LIBDIRNAME = $(top_builddir)lib
56 ### Conditionally set variables: ###
58 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
59 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
60 @COND_USE_GUI_0@PORTNAME = base
61 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
62 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
63 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
64 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
65 @COND_UNICODE_1@WXUNICODEFLAG = u
66 @COND_WXUNIV_1@WXUNIVNAME = univ
67 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
68 @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
69 @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
70 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
71 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
72 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
73 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
74 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
75 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
76 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
77 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
78 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
79 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
80 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
81 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
82 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
83 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
84 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
85 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
86 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
87 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
88 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
89 $(__DLLFLAG_p_1) -i $(srcdir)/../../samples -o forty$(EXEEXT) Carbon.r \
90 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r
91 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
92 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
93 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
94 COND_MONOLITHIC_0___WXLIB_CORE_p = \
95 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
96 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
97 COND_MONOLITHIC_0___WXLIB_HTML_p = \
98 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html-2.5$(HOST_SUFFIX)
99 @COND_MONOLITHIC_0@__WXLIB_HTML_p = $(COND_MONOLITHIC_0___WXLIB_HTML_p)
100 COND_MONOLITHIC_1___WXLIB_MONO_p = \
101 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
102 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
103 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
104 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
105 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
106 @COND_PLATFORM_MAC_1@__forty___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
107 @COND_PLATFORM_MAC_1@__forty___mac_setfilecmd = \
108 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C forty$(EXEEXT)
109 COND_PLATFORM_OS2_1___forty___os2_emxbindcmd = $(NM) forty$(EXEEXT) | if grep -q \
110 pmwin.763 ; then emxbind -ep forty$(EXEEXT) ; fi
111 @COND_PLATFORM_OS2_1@__forty___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___forty___os2_emxbindcmd)
112 @COND_PLATFORM_WIN32_1@__forty___win32rc = forty_forty_rc.o
113 @COND_PLATFORM_MACOSX_1@__forty_bundle___depname = forty_bundle
114 @COND_PLATFORM_OS2_1@__forty_os2_lib_res = \
115 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
119 all: forty$(EXEEXT) $(__forty_bundle___depname)
122 rm -rf ./.deps ./.pch
128 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
130 forty$(EXEEXT): $(FORTY_OBJECTS) $(__forty___win32rc)
131 $(CXX) -o $@ $(FORTY_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_HTML_p) $(EXTRALIBS_HTML) $(__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)
132 $(__forty___mac_rezcmd)
133 $(__forty___mac_setfilecmd)
134 $(__forty___os2_emxbindcmd)
135 $(SAMPLES_RPATH_POSTLINK)
137 forty.app/Contents/PkgInfo: forty$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
138 mkdir -p forty.app/Contents
139 mkdir -p forty.app/Contents/MacOS
140 mkdir -p forty.app/Contents/Resources
143 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
144 -e "s/EXECUTABLE/forty/" \
145 -e "s/VERSION/$(WX_VERSION)/" \
146 $(top_srcdir)/src/mac/Info.plist.in >forty.app/Contents/Info.plist
149 echo -n "APPL????" >forty.app/Contents/PkgInfo
152 ln -f forty$(EXEEXT) forty.app/Contents/MacOS/forty
155 ln -sf $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc forty.app/Contents/Resources/forty.rsrc
156 ln -sf $(top_srcdir)/src/mac/wxmac.icns forty.app/Contents/Resources/wxmac.icns
158 @COND_PLATFORM_MACOSX_1@forty_bundle: forty.app/Contents/PkgInfo
160 forty_canvas.o: $(srcdir)/canvas.cpp
161 $(CXXC) -c -o $@ $(FORTY_CXXFLAGS) $<
163 forty_card.o: $(srcdir)/card.cpp
164 $(CXXC) -c -o $@ $(FORTY_CXXFLAGS) $<
166 forty_forty.o: $(srcdir)/forty.cpp
167 $(CXXC) -c -o $@ $(FORTY_CXXFLAGS) $<
169 forty_forty_rc.o: $(srcdir)/forty.rc
170 $(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
172 forty_game.o: $(srcdir)/game.cpp
173 $(CXXC) -c -o $@ $(FORTY_CXXFLAGS) $<
175 forty_pile.o: $(srcdir)/pile.cpp
176 $(CXXC) -c -o $@ $(FORTY_CXXFLAGS) $<
178 forty_playerdg.o: $(srcdir)/playerdg.cpp
179 $(CXXC) -c -o $@ $(FORTY_CXXFLAGS) $<
181 forty_scoredg.o: $(srcdir)/scoredg.cpp
182 $(CXXC) -c -o $@ $(FORTY_CXXFLAGS) $<
184 forty_scorefil.o: $(srcdir)/scorefil.cpp
185 $(CXXC) -c -o $@ $(FORTY_CXXFLAGS) $<
189 install-strip: install
194 # Include dependency info, if present:
195 @IF_GNU_MAKE@-include .deps/*.d
197 .PHONY: all clean distclean forty_bundle install uninstall