]>
Commit | Line | Data |
---|---|---|
592cae95 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 | # ========================================================================= | |
f6bcfd97 | 6 | |
f6bcfd97 | 7 | |
592cae95 | 8 | @MAKE_SET@ |
f6bcfd97 | 9 | |
592cae95 VS |
10 | prefix = @prefix@ |
11 | exec_prefix = @exec_prefix@ | |
12 | INSTALL = @INSTALL@ | |
13 | CPPFLAGS = @CPPFLAGS@ | |
14 | CXX = @CXX@ | |
15 | CXXFLAGS = @CXXFLAGS@ | |
16 | EXEEXT = @EXEEXT@ | |
17 | EXTRALIBS = @EXTRALIBS@ | |
18 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ | |
19 | HOST_SUFFIX = @HOST_SUFFIX@ | |
20 | LDFLAGS = @LDFLAGS@ | |
21 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
22 | RESCOMP = @RESCOMP@ | |
23 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ | |
ab892b95 | 24 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
592cae95 VS |
25 | SETFILE = @SETFILE@ |
26 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ | |
27 | TOOLKIT = @TOOLKIT@ | |
28 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
29 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
30 | srcdir = @srcdir@ | |
31 | top_builddir = @top_builddir@ | |
32 | top_srcdir = @top_srcdir@ | |
f6bcfd97 | 33 | |
592cae95 | 34 | ### Variables: ### |
f6bcfd97 | 35 | |
592cae95 VS |
36 | LIBDIRNAME = $(top_builddir)lib |
37 | OGLEDIT_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
75a0a7b7 VS |
38 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
39 | -I$(srcdir)/../../../../samples -I$(srcdir)/../../../include $(CXXFLAGS) | |
592cae95 | 40 | OGLEDIT_OBJECTS = \ |
592cae95 VS |
41 | ogledit_studio.o \ |
42 | ogledit_doc.o \ | |
43 | ogledit_shapes.o \ | |
44 | ogledit_symbols.o \ | |
45 | ogledit_view.o \ | |
46 | ogledit_cspalette.o \ | |
47 | ogledit_mainfrm.o \ | |
48 | ogledit_project.o \ | |
49 | ogledit_dialogs.o \ | |
50 | ogledit_csprint.o \ | |
51 | $(__ogledit___win32rc) | |
75a0a7b7 | 52 | WX_VERSION = 2.5.0 |
f6bcfd97 | 53 | |
592cae95 | 54 | ### Conditionally set variables: ### |
f6bcfd97 | 55 | |
592cae95 VS |
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 | |
592cae95 VS |
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 \ | |
75a0a7b7 | 86 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \ |
ab892b95 VS |
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 | |
592cae95 VS |
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) | |
592cae95 | 105 | @COND_PLATFORM_WIN32_1@__ogledit___win32rc = ogledit_studio_rc.o |
ab892b95 | 106 | @COND_PLATFORM_MACOSX_1@__ogledit_bundle___depname = ogledit_bundle |
592cae95 VS |
107 | |
108 | ### Targets: ### | |
109 | ||
ab892b95 | 110 | all: ogledit$(EXEEXT) $(__ogledit_bundle___depname) data |
592cae95 VS |
111 | |
112 | clean: | |
ab892b95 | 113 | rm -rf ./.deps ./.pch |
592cae95 VS |
114 | rm -f ./*.o |
115 | rm -f ogledit$(EXEEXT) | |
ab892b95 | 116 | rm -rf ogledit.app |
592cae95 VS |
117 | |
118 | data: | |
119 | @mkdir -p . | |
120 | @for f in studio_resources.wxr; do \ | |
121 | if test \( ! -s ./$$f \) -o \( $(srcdir)/$$f -nt ./$$f \) ; then \ | |
122 | cp -pRf $(srcdir)/$$f . ; \ | |
123 | fi; \ | |
124 | done | |
125 | ||
126 | distclean: clean | |
ab892b95 | 127 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
592cae95 VS |
128 | |
129 | install: all | |
130 | ||
131 | install-strip: install | |
132 | ||
fd9f42b6 | 133 | ogledit$(EXEEXT): $(OGLEDIT_OBJECTS) $(__ogledit___win32rc) |
592cae95 VS |
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) | |
ab892b95 VS |
137 | $(SAMPLES_RPATH_POSTLINK) |
138 | ||
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 | |
143 | ||
144 | ||
145 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
146 | -e "s/EXECUTABLE/ogledit/" \ | |
75a0a7b7 | 147 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
148 | $(top_srcdir)/src/mac/Info.plist.in >ogledit.app/Contents/Info.plist |
149 | ||
150 | ||
151 | echo -n "APPL????" >ogledit.app/Contents/PkgInfo | |
152 | ||
153 | ||
154 | ln -f ogledit$(EXEEXT) ogledit.app/Contents/MacOS/ogledit | |
155 | ||
156 | ||
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 | |
159 | ||
160 | @COND_PLATFORM_MACOSX_1@ogledit_bundle: ogledit.app/Contents | |
592cae95 VS |
161 | |
162 | ogledit_cspalette.o: $(srcdir)/cspalette.cpp | |
163 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
164 | ||
165 | ogledit_csprint.o: $(srcdir)/csprint.cpp | |
166 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
167 | ||
168 | ogledit_dialogs.o: $(srcdir)/dialogs.cpp | |
169 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
170 | ||
171 | ogledit_doc.o: $(srcdir)/doc.cpp | |
172 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
173 | ||
174 | ogledit_mainfrm.o: $(srcdir)/mainfrm.cpp | |
175 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
176 | ||
177 | ogledit_project.o: $(srcdir)/project.cpp | |
178 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
179 | ||
592cae95 VS |
180 | ogledit_shapes.o: $(srcdir)/shapes.cpp |
181 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
182 | ||
183 | ogledit_studio.o: $(srcdir)/studio.cpp | |
184 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
185 | ||
186 | ogledit_studio_rc.o: $(srcdir)/studio.rc | |
75a0a7b7 | 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 |
592cae95 VS |
188 | |
189 | ogledit_symbols.o: $(srcdir)/symbols.cpp | |
190 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
191 | ||
192 | ogledit_view.o: $(srcdir)/view.cpp | |
193 | $(CXXC) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
194 | ||
195 | uninstall: | |
196 | ||
197 | ||
198 | # Include dependency info, if present: | |
199 | @IF_GNU_MAKE@-include .deps/*.d | |
200 | ||
ab892b95 | 201 | .PHONY: all clean data distclean install ogledit_bundle uninstall |