]>
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 | 13 | EXEEXT = @EXEEXT@ |
8ced02f6 DE |
14 | WINDRES = @WINDRES@ |
15 | REZ = @REZ@ | |
b17c1746 DE |
16 | SETFILE = @SETFILE@ |
17 | NM = @NM@ | |
18 | srcdir = @srcdir@ | |
19 | top_srcdir = @top_srcdir@ | |
20 | top_builddir = @top_builddir@ | |
21 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
e93c6860 | 22 | CC = @CC@ |
e93c6860 | 23 | CXX = @CXX@ |
b17c1746 | 24 | CFLAGS = @CFLAGS@ |
e93c6860 | 25 | CXXFLAGS = @CXXFLAGS@ |
b17c1746 DE |
26 | CPPFLAGS = @CPPFLAGS@ |
27 | LDFLAGS = @LDFLAGS@ | |
589e20d0 | 28 | WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@ |
b17c1746 DE |
29 | TOOLKIT = @TOOLKIT@ |
30 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
31 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
8ced02f6 | 32 | TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@ |
e93c6860 VS |
33 | EXTRALIBS = @EXTRALIBS@ |
34 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ | |
22cef566 | 35 | EXTRALIBS_OPENGL = @EXTRALIBS_OPENGL@ |
e93c6860 | 36 | HOST_SUFFIX = @HOST_SUFFIX@ |
e93c6860 | 37 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ |
ab892b95 | 38 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
335258dc | 39 | |
e93c6860 | 40 | ### Variables: ### |
335258dc | 41 | |
b71531ad | 42 | DESTDIR = |
0ee4059d DE |
43 | WX_RELEASE = 2.7 |
44 | WX_VERSION = $(WX_RELEASE).0 | |
e93c6860 | 45 | LIBDIRNAME = $(top_builddir)lib |
8c9f8f91 JS |
46 | PENGUIN_CFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
47 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ | |
48 | -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../../samples $(CPPFLAGS) \ | |
49 | $(CFLAGS) | |
50 | PENGUIN_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
51 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ | |
52 | -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../../samples $(CPPFLAGS) \ | |
53 | $(CXXFLAGS) | |
e93c6860 | 54 | PENGUIN_OBJECTS = \ |
a4ad36cd | 55 | $(__penguin_os2_lib_res) \ |
e93c6860 | 56 | penguin_penguin.o \ |
4b764db3 | 57 | penguin_dxfrenderer.o \ |
e93c6860 VS |
58 | penguin_trackball.o \ |
59 | $(__penguin___win32rc) | |
335258dc | 60 | |
e93c6860 | 61 | ### Conditionally set variables: ### |
335258dc | 62 | |
b328fad3 VS |
63 | @COND_DEPS_TRACKING_0@CCC = $(CC) |
64 | @COND_DEPS_TRACKING_1@CCC = $(top_builddir)./bk-deps $(CC) | |
65 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) | |
66 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
e93c6860 VS |
67 | @COND_USE_GUI_0@PORTNAME = base |
68 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
69 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon | |
70 | @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d | |
71 | @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d | |
72 | @COND_UNICODE_1@WXUNICODEFLAG = u | |
73 | @COND_WXUNIV_1@WXUNIVNAME = univ | |
0e3165d7 DE |
74 | @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS) |
75 | @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI) | |
76 | @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI) | |
77 | @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI = | |
78 | @COND_USE_OPENGL_1@__penguin___depname = penguin$(EXEEXT) | |
b17c1746 DE |
79 | @COND_PLATFORM_MAC_1@__penguin___mac_setfilecmd = \ |
80 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C penguin$(EXEEXT) | |
81 | @COND_PLATFORM_MAC_1@__penguin___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) | |
82 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
83 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ | |
84 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ | |
8c9f8f91 JS |
85 | @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS |
86 | @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_1 = -d wxNO_EXCEPTIONS | |
87 | @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_2 = --define wxNO_EXCEPTIONS | |
88 | @COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI | |
89 | @COND_USE_RTTI_0@__RTTI_DEFINE_p_1 = -d wxNO_RTTI | |
90 | @COND_USE_RTTI_0@__RTTI_DEFINE_p_2 = --define wxNO_RTTI | |
91 | @COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS | |
92 | @COND_USE_THREADS_0@__THREAD_DEFINE_p_1 = -d wxNO_THREADS | |
93 | @COND_USE_THREADS_0@__THREAD_DEFINE_p_2 = --define wxNO_THREADS | |
e93c6860 VS |
94 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL |
95 | @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL | |
96 | @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL | |
b17c1746 DE |
97 | COND_PLATFORM_OS2_1___penguin___os2_emxbindcmd = $(NM) penguin$(EXEEXT) | if \ |
98 | grep -q pmwin.763 ; then emxbind -ep penguin$(EXEEXT) ; fi | |
99 | @COND_PLATFORM_OS2_1@__penguin___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___penguin___os2_emxbindcmd) | |
8ced02f6 DE |
100 | @COND_TOOLKIT_MSW@__RCDEFDIR_p = -i \ |
101 | @COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME) | |
102 | @COND_TOOLKIT_MSW@__RCDEFDIR_p_1 = --include-dir \ | |
103 | @COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME) | |
b17c1746 DE |
104 | @COND_PLATFORM_OS2_1@__penguin_os2_lib_res = \ |
105 | @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res | |
106 | @COND_PLATFORM_MACOSX_1@__penguin_bundle___depname = penguin_bundle | |
c4839ccf JS |
107 | @COND_TOOLKIT_COCOA@____penguin_BUNDLE_TGT_REF_DEP = \ |
108 | @COND_TOOLKIT_COCOA@ penguin.app/Contents/PkgInfo | |
109 | @COND_TOOLKIT_MAC@____penguin_BUNDLE_TGT_REF_DEP = \ | |
110 | @COND_TOOLKIT_MAC@ penguin.app/Contents/PkgInfo | |
b17c1746 | 111 | COND_MONOLITHIC_0___WXLIB_CORE_p = \ |
a1bf307a | 112 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 | 113 | @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p) |
ceec2216 | 114 | COND_MONOLITHIC_0___WXLIB_BASE_p = \ |
a1bf307a | 115 | -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
ceec2216 | 116 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p) |
b17c1746 DE |
117 | @COND_PLATFORM_WIN32_1@__penguin___win32rc = penguin_penguin_rc.o |
118 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ | |
a1bf307a | 119 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 DE |
120 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) |
121 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ | |
122 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
ceec2216 | 123 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
e93c6860 VS |
124 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ |
125 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
ceec2216 | 126 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
e93c6860 VS |
127 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ |
128 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
ceec2216 | 129 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
e93c6860 | 130 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ |
ceec2216 | 131 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 | 132 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ |
7714864e | 133 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
ceec2216 RL |
134 | COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \ |
135 | -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) | |
136 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p) | |
b17c1746 | 137 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ |
ceec2216 | 138 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
8ced02f6 | 139 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(REZ) -d __DARWIN__ -t APPL -d \ |
8c9f8f91 JS |
140 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) \ |
141 | $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \ | |
8ced02f6 DE |
142 | $(srcdir)/../../../samples $(__RCDEFDIR_p) -i $(top_srcdir)/include -o \ |
143 | penguin$(EXEEXT) Carbon.r sample.r | |
e93c6860 | 144 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1) |
e93c6860 VS |
145 | |
146 | ### Targets: ### | |
147 | ||
0e3165d7 | 148 | all: $(__penguin___depname) $(__penguin_bundle___depname) data |
e93c6860 | 149 | |
b17c1746 DE |
150 | install: all |
151 | ||
152 | uninstall: | |
153 | ||
154 | install-strip: install | |
155 | ||
e93c6860 | 156 | clean: |
ab892b95 | 157 | rm -rf ./.deps ./.pch |
e93c6860 | 158 | rm -f ./*.o |
b328fad3 | 159 | rm -f penguin$(EXEEXT) |
ab892b95 | 160 | rm -rf penguin.app |
e93c6860 | 161 | |
e93c6860 | 162 | distclean: clean |
b14abf14 | 163 | rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
e93c6860 | 164 | |
0e3165d7 DE |
165 | @COND_USE_OPENGL_1@penguin$(EXEEXT): $(PENGUIN_OBJECTS) $(__penguin___win32rc) |
166 | @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) | |
167 | @COND_USE_OPENGL_1@ $(__penguin___mac_rezcmd) | |
168 | @COND_USE_OPENGL_1@ $(__penguin___mac_setfilecmd) | |
169 | @COND_USE_OPENGL_1@ $(__penguin___os2_emxbindcmd) | |
170 | @COND_USE_OPENGL_1@ $(SAMPLES_RPATH_POSTLINK) | |
ab892b95 | 171 | |
d391f667 | 172 | penguin.app/Contents/PkgInfo: $(__penguin___depname) $(top_srcdir)/src/mac/carbon/Info.plist.in $(top_srcdir)/src/mac/carbon/wxmac.icns |
ab892b95 VS |
173 | mkdir -p penguin.app/Contents |
174 | mkdir -p penguin.app/Contents/MacOS | |
175 | mkdir -p penguin.app/Contents/Resources | |
176 | ||
177 | ||
178 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
179 | -e "s/EXECUTABLE/penguin/" \ | |
75a0a7b7 | 180 | -e "s/VERSION/$(WX_VERSION)/" \ |
0b0efa9a | 181 | $(top_srcdir)/src/mac/carbon/Info.plist.in >penguin.app/Contents/Info.plist |
ab892b95 VS |
182 | |
183 | ||
184 | echo -n "APPL????" >penguin.app/Contents/PkgInfo | |
185 | ||
186 | ||
b328fad3 | 187 | ln -f penguin$(EXEEXT) penguin.app/Contents/MacOS/penguin |
ab892b95 VS |
188 | |
189 | ||
c4839ccf | 190 | cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns penguin.app/Contents/Resources/wxmac.icns |
ab892b95 | 191 | |
c4839ccf | 192 | @COND_PLATFORM_MACOSX_1@penguin_bundle: $(____penguin_BUNDLE_TGT_REF_DEP) |
e93c6860 | 193 | |
b17c1746 DE |
194 | data: |
195 | @mkdir -p . | |
4b764db3 | 196 | @for f in penguin.dxf.gz; do \ |
0d90d6ea | 197 | if test ! -f ./$$f -a ! -d ./$$f ; \ |
b14abf14 JS |
198 | then x=yep ; \ |
199 | else x=`find $(srcdir)/$$f -newer ./$$f -print` ; \ | |
b17c1746 | 200 | fi; \ |
b14abf14 JS |
201 | case "$$x" in ?*) \ |
202 | cp -pRf $(srcdir)/$$f . ;; \ | |
203 | esac; \ | |
b17c1746 | 204 | done |
e93c6860 VS |
205 | |
206 | penguin_penguin.o: $(srcdir)/penguin.cpp | |
b14abf14 | 207 | $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $(srcdir)/penguin.cpp |
e93c6860 | 208 | |
4b764db3 JS |
209 | penguin_dxfrenderer.o: $(srcdir)/dxfrenderer.cpp |
210 | $(CXXC) -c -o $@ $(PENGUIN_CXXFLAGS) $(srcdir)/dxfrenderer.cpp | |
e93c6860 VS |
211 | |
212 | penguin_trackball.o: $(srcdir)/trackball.c | |
b14abf14 | 213 | $(CCC) -c -o $@ $(PENGUIN_CFLAGS) $(srcdir)/trackball.c |
e93c6860 | 214 | |
b17c1746 | 215 | penguin_penguin_rc.o: $(srcdir)/penguin.rc |
8ced02f6 | 216 | $(WINDRES) -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 $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include |
e93c6860 VS |
217 | |
218 | ||
219 | # Include dependency info, if present: | |
220 | @IF_GNU_MAKE@-include .deps/*.d | |
221 | ||
b17c1746 | 222 | .PHONY: all install uninstall clean distclean penguin_bundle data |