]>
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@ | |
b328fad3 | 16 | EXEEXT = @EXEEXT@ |
592cae95 VS |
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 | 36 | LIBDIRNAME = $(top_builddir)lib |
34f7e40f | 37 | STUDIO_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) | |
34f7e40f JS |
40 | STUDIO_OBJECTS = \ |
41 | studio_studio.o \ | |
42 | studio_doc.o \ | |
43 | studio_shapes.o \ | |
44 | studio_symbols.o \ | |
45 | studio_view.o \ | |
46 | studio_cspalette.o \ | |
47 | studio_mainfrm.o \ | |
48 | studio_project.o \ | |
49 | studio_dialogs.o \ | |
50 | studio_csprint.o \ | |
51 | $(__studio___win32rc) | |
75a0a7b7 | 52 | WX_VERSION = 2.5.0 |
f6bcfd97 | 53 | |
592cae95 | 54 | ### Conditionally set variables: ### |
f6bcfd97 | 55 | |
b328fad3 VS |
56 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) |
57 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
592cae95 VS |
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 | 87 | $(__DLLFLAG_p_1) -i $(srcdir)/../../../../samples -i \ |
b328fad3 | 88 | $(srcdir)/../../../include -o studio$(EXEEXT) Carbon.r \ |
ab892b95 | 89 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r |
592cae95 | 90 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1) |
34f7e40f JS |
91 | COND_MONOLITHIC_0___WXLIB_ADV_p = \ |
92 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv-2.5$(HOST_SUFFIX) | |
93 | @COND_MONOLITHIC_0@__WXLIB_ADV_p = $(COND_MONOLITHIC_0___WXLIB_ADV_p) | |
592cae95 VS |
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__ | |
34f7e40f | 105 | @COND_PLATFORM_MAC_1@__studio___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) |
b328fad3 VS |
106 | @COND_PLATFORM_MAC_1@__studio___mac_setfilecmd = \ |
107 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C studio$(EXEEXT) | |
34f7e40f JS |
108 | @COND_PLATFORM_WIN32_1@__studio___win32rc = studio_studio_rc.o |
109 | @COND_PLATFORM_MACOSX_1@__studio_bundle___depname = studio_bundle | |
592cae95 VS |
110 | |
111 | ### Targets: ### | |
112 | ||
b328fad3 | 113 | all: studio$(EXEEXT) $(__studio_bundle___depname) data |
592cae95 VS |
114 | |
115 | clean: | |
ab892b95 | 116 | rm -rf ./.deps ./.pch |
592cae95 | 117 | rm -f ./*.o |
b328fad3 | 118 | rm -f studio$(EXEEXT) |
34f7e40f | 119 | rm -rf studio.app |
592cae95 VS |
120 | |
121 | data: | |
122 | @mkdir -p . | |
123 | @for f in studio_resources.wxr; do \ | |
124 | if test \( ! -s ./$$f \) -o \( $(srcdir)/$$f -nt ./$$f \) ; then \ | |
125 | cp -pRf $(srcdir)/$$f . ; \ | |
126 | fi; \ | |
127 | done | |
128 | ||
129 | distclean: clean | |
ab892b95 | 130 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
592cae95 VS |
131 | |
132 | install: all | |
133 | ||
134 | install-strip: install | |
135 | ||
b328fad3 | 136 | studio$(EXEEXT): $(STUDIO_OBJECTS) $(__studio___win32rc) |
34f7e40f JS |
137 | $(CXX) -o $@ $(STUDIO_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl-2.5$(HOST_SUFFIX) -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated-2.5$(HOST_SUFFIX) $(__WXLIB_ADV_p) $(__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) |
138 | $(__studio___mac_rezcmd) | |
139 | $(__studio___mac_setfilecmd) | |
ab892b95 VS |
140 | $(SAMPLES_RPATH_POSTLINK) |
141 | ||
1c3a6972 | 142 | studio.app/Contents/PkgInfo: studio$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns |
34f7e40f JS |
143 | mkdir -p studio.app/Contents |
144 | mkdir -p studio.app/Contents/MacOS | |
145 | mkdir -p studio.app/Contents/Resources | |
ab892b95 VS |
146 | |
147 | ||
148 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
34f7e40f | 149 | -e "s/EXECUTABLE/studio/" \ |
75a0a7b7 | 150 | -e "s/VERSION/$(WX_VERSION)/" \ |
34f7e40f | 151 | $(top_srcdir)/src/mac/Info.plist.in >studio.app/Contents/Info.plist |
ab892b95 VS |
152 | |
153 | ||
34f7e40f | 154 | echo -n "APPL????" >studio.app/Contents/PkgInfo |
ab892b95 VS |
155 | |
156 | ||
b328fad3 | 157 | ln -f studio$(EXEEXT) studio.app/Contents/MacOS/studio |
ab892b95 VS |
158 | |
159 | ||
34f7e40f JS |
160 | ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc studio.app/Contents/Resources/studio.rsrc |
161 | ln -f $(top_srcdir)/src/mac/wxmac.icns studio.app/Contents/Resources/wxmac.icns | |
ab892b95 | 162 | |
1c3a6972 | 163 | @COND_PLATFORM_MACOSX_1@studio_bundle: studio.app/Contents/PkgInfo |
592cae95 | 164 | |
34f7e40f | 165 | studio_cspalette.o: $(srcdir)/cspalette.cpp |
b328fad3 | 166 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 167 | |
34f7e40f | 168 | studio_csprint.o: $(srcdir)/csprint.cpp |
b328fad3 | 169 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 170 | |
34f7e40f | 171 | studio_dialogs.o: $(srcdir)/dialogs.cpp |
b328fad3 | 172 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 173 | |
34f7e40f | 174 | studio_doc.o: $(srcdir)/doc.cpp |
b328fad3 | 175 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 176 | |
34f7e40f | 177 | studio_mainfrm.o: $(srcdir)/mainfrm.cpp |
b328fad3 | 178 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 179 | |
34f7e40f | 180 | studio_project.o: $(srcdir)/project.cpp |
b328fad3 | 181 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 182 | |
34f7e40f | 183 | studio_shapes.o: $(srcdir)/shapes.cpp |
b328fad3 | 184 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 185 | |
34f7e40f | 186 | studio_studio.o: $(srcdir)/studio.cpp |
b328fad3 | 187 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 188 | |
34f7e40f | 189 | studio_studio_rc.o: $(srcdir)/studio.rc |
75a0a7b7 | 190 | $(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 | 191 | |
34f7e40f | 192 | studio_symbols.o: $(srcdir)/symbols.cpp |
b328fad3 | 193 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 | 194 | |
34f7e40f | 195 | studio_view.o: $(srcdir)/view.cpp |
b328fad3 | 196 | $(CXXC) -c -o $@ $(STUDIO_CXXFLAGS) $< |
592cae95 VS |
197 | |
198 | uninstall: | |
199 | ||
200 | ||
201 | # Include dependency info, if present: | |
202 | @IF_GNU_MAKE@-include .deps/*.d | |
203 | ||
34f7e40f | 204 | .PHONY: all clean data distclean install studio_bundle uninstall |