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 HOST_SUFFIX = @HOST_SUFFIX@
21 LDFLAGS_GUI = @LDFLAGS_GUI@
23 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
24 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
26 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
28 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
29 TOOLKIT_VERSION = @TOOLKIT_VERSION@
31 top_builddir = @top_builddir@
32 top_srcdir = @top_srcdir@
36 LIBDIRNAME = $(top_builddir)lib
37 OGLEDIT_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
38 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
39 -I$(srcdir)/../../../../samples -I$(srcdir)/../../../include $(CXXFLAGS)
51 $(__ogledit___win32rc)
54 ### Conditionally set variables: ###
56 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
57 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
58 @COND_USE_GUI_0@PORTNAME = base
59 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
60 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
61 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
62 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
63 @COND_UNICODE_1@WXUNICODEFLAG = u
64 @COND_WXUNIV_1@WXUNIVNAME = univ
65 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
66 @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
67 @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
68 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
69 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
70 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
71 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
72 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
73 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
74 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
75 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
76 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
77 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
78 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
79 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
80 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
81 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
82 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
83 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
84 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
85 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
86 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
87 $(__DLLFLAG_p_1) -i $(srcdir)/../../../../samples -i \
88 $(srcdir)/../../../include -o ogledit$(EXEEXT) Carbon.r \
89 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r
90 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
91 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
92 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
93 COND_MONOLITHIC_0___WXLIB_CORE_p = \
94 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
95 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
96 COND_MONOLITHIC_1___WXLIB_MONO_p = \
97 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
98 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
99 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
101 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
102 @COND_PLATFORM_MAC_1@__ogledit___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
103 @COND_PLATFORM_MAC_1@__ogledit___mac_setfilecmd = \
104 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C ogledit$(EXEEXT)
105 @COND_PLATFORM_WIN32_1@__ogledit___win32rc = ogledit_studio_rc.o
106 @COND_PLATFORM_MACOSX_1@__ogledit_bundle___depname = ogledit_bundle
110 all: ogledit$(EXEEXT) $(__ogledit_bundle___depname) data
113 rm -rf ./.deps ./.pch
115 rm -f ogledit$(EXEEXT)
120 @for f in studio_resources.wxr; do \
121 if test \( ! -s ./$$f \) -o \( $(srcdir)/$$f -nt ./$$f \) ; then \
122 cp -pRf $(srcdir)/$$f . ; \
127 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
131 install-strip: install
133 ogledit$(EXEEXT): $(OGLEDIT_OBJECTS) $(__ogledit___win32rc)
134 $(CXX) -o $@ $(OGLEDIT_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl-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)
135 $(__ogledit___mac_rezcmd)
136 $(__ogledit___mac_setfilecmd)
137 $(SAMPLES_RPATH_POSTLINK)
139 ogledit.app/Contents: ogledit$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns
140 mkdir -p ogledit.app/Contents
141 mkdir -p ogledit.app/Contents/MacOS
142 mkdir -p ogledit.app/Contents/Resources
145 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
146 -e "s/EXECUTABLE/ogledit/" \
147 -e "s/VERSION/$(WX_VERSION)/" \
148 $(top_srcdir)/src/mac/Info.plist.in >ogledit.app/Contents/Info.plist
151 echo -n "APPL????" >ogledit.app/Contents/PkgInfo
154 ln -f ogledit$(EXEEXT) ogledit.app/Contents/MacOS/ogledit
157 ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc ogledit.app/Contents/Resources/ogledit.rsrc
158 ln -f $(top_srcdir)/src/mac/wxmac.icns ogledit.app/Contents/Resources/wxmac.icns
160 @COND_PLATFORM_MACOSX_1@ogledit_bundle: ogledit.app/Contents
162 ogledit_cspalette.o: $(srcdir)/cspalette.cpp
163 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
165 ogledit_csprint.o: $(srcdir)/csprint.cpp
166 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
168 ogledit_dialogs.o: $(srcdir)/dialogs.cpp
169 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
171 ogledit_doc.o: $(srcdir)/doc.cpp
172 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
174 ogledit_mainfrm.o: $(srcdir)/mainfrm.cpp
175 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
177 ogledit_project.o: $(srcdir)/project.cpp
178 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
180 ogledit_shapes.o: $(srcdir)/shapes.cpp
181 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
183 ogledit_studio.o: $(srcdir)/studio.cpp
184 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
186 ogledit_studio_rc.o: $(srcdir)/studio.rc
187 $(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 --include-dir $(srcdir)/../../../include
189 ogledit_symbols.o: $(srcdir)/symbols.cpp
190 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
192 ogledit_view.o: $(srcdir)/view.cpp
193 $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $<
198 # Include dependency info, if present:
199 @IF_GNU_MAKE@-include .deps/*.d
201 .PHONY: all clean data distclean install ogledit_bundle uninstall