]>
Commit | Line | Data |
---|---|---|
9c743a7c 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 | # ========================================================================= | |
6 | ||
7 | ||
8 | @MAKE_SET@ | |
9 | ||
10 | prefix = @prefix@ | |
11 | exec_prefix = @exec_prefix@ | |
12 | INSTALL = @INSTALL@ | |
13 | CPPFLAGS = @CPPFLAGS@ | |
14 | CXX = @CXX@ | |
15 | CXXFLAGS = @CXXFLAGS@ | |
b328fad3 VS |
16 | DLLPREFIX_MODULE = @DLLPREFIX_MODULE@ |
17 | EXEEXT = @EXEEXT@ | |
9c743a7c VS |
18 | EXTRALIBS = @EXTRALIBS@ |
19 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ | |
20 | HOST_SUFFIX = @HOST_SUFFIX@ | |
21 | LDFLAGS = @LDFLAGS@ | |
22 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
23 | PIC_FLAG = @PIC_FLAG@ | |
24 | RESCOMP = @RESCOMP@ | |
25 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ | |
ab892b95 | 26 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
9c743a7c VS |
27 | SETFILE = @SETFILE@ |
28 | SHARED_LD_MODULE_CXX = @SHARED_LD_MODULE_CXX@ | |
29 | SO_SUFFIX_MODULE = @SO_SUFFIX_MODULE@ | |
30 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ | |
31 | TOOLKIT = @TOOLKIT@ | |
32 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
33 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
34 | srcdir = @srcdir@ | |
35 | top_builddir = @top_builddir@ | |
36 | top_srcdir = @top_srcdir@ | |
37 | ||
38 | ### Variables: ### | |
39 | ||
40 | LIBDIRNAME = $(top_builddir)lib | |
41 | RENDDLL_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
75a0a7b7 | 42 | -I$(top_srcdir)/include -DWXUSINGDLL $(CXXFLAGS) $(PIC_FLAG) |
9c743a7c VS |
43 | RENDDLL_OBJECTS = \ |
44 | renddll_renddll.o | |
45 | RENDER_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
75a0a7b7 VS |
46 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
47 | -I$(srcdir)/../../samples $(CXXFLAGS) | |
9c743a7c VS |
48 | RENDER_OBJECTS = \ |
49 | $(__render___win32rc) \ | |
50 | render_render.o | |
2c02ec05 | 51 | WX_VERSION = 2.5.0 |
9c743a7c VS |
52 | |
53 | ### Conditionally set variables: ### | |
54 | ||
b328fad3 VS |
55 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) |
56 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
9c743a7c VS |
57 | @COND_PLATFORM_UNIX_0@PLUGIN_VERSION = 250 |
58 | @COND_PLATFORM_UNIX_1@PLUGIN_VERSION = -2.5.0 | |
59 | @COND_USE_GUI_0@PORTNAME = base | |
60 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
61 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon | |
2c02ec05 | 62 | @COND_PLATFORM_WIN32_1@WXCOMPILER = _gcc |
9c743a7c VS |
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 | |
9c743a7c VS |
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 \ | |
75a0a7b7 | 88 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \ |
b328fad3 | 89 | $(__DLLFLAG_p_1) -i $(srcdir)/../../samples -o render$(EXEEXT) Carbon.r \ |
ab892b95 | 90 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r |
9c743a7c VS |
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_1___WXLIB_MONO_p = \ | |
98 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
99 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) | |
100 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
101 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ | |
102 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ | |
103 | COND_SHARED_1___renddll___depname = \ | |
b328fad3 | 104 | $(DLLPREFIX_MODULE)renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE) |
9c743a7c VS |
105 | @COND_SHARED_1@__renddll___depname = $(COND_SHARED_1___renddll___depname) |
106 | @COND_PLATFORM_MAC_1@__render___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) | |
b328fad3 VS |
107 | @COND_PLATFORM_MAC_1@__render___mac_setfilecmd = \ |
108 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C render$(EXEEXT) | |
9c743a7c | 109 | @COND_PLATFORM_WIN32_1@__render___win32rc = render_sample_rc.o |
ab892b95 | 110 | @COND_PLATFORM_MACOSX_1@__render_bundle___depname = render_bundle |
9c743a7c VS |
111 | |
112 | ### Targets: ### | |
113 | ||
b328fad3 | 114 | all: render$(EXEEXT) $(__render_bundle___depname) $(__renddll___depname) |
9c743a7c VS |
115 | |
116 | clean: | |
ab892b95 | 117 | rm -rf ./.deps ./.pch |
9c743a7c | 118 | rm -f ./*.o |
b328fad3 | 119 | rm -f render$(EXEEXT) |
ab892b95 | 120 | rm -rf render.app |
b328fad3 | 121 | rm -f $(DLLPREFIX_MODULE)renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE) |
9c743a7c VS |
122 | |
123 | distclean: clean | |
ab892b95 | 124 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
9c743a7c VS |
125 | |
126 | install: all | |
127 | ||
128 | install-strip: install | |
129 | ||
b328fad3 | 130 | @COND_SHARED_1@$(DLLPREFIX_MODULE)renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE): $(RENDDLL_OBJECTS) |
9c743a7c VS |
131 | @COND_SHARED_1@ $(SHARED_LD_MODULE_CXX) $@ $(RENDDLL_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(__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 | ||
133 | renddll_renddll.o: $(srcdir)/renddll.cpp | |
b328fad3 | 134 | $(CXXC) -c -o $@ $(RENDDLL_CXXFLAGS) $< |
9c743a7c | 135 | |
b328fad3 | 136 | render$(EXEEXT): $(RENDER_OBJECTS) $(__render___win32rc) |
9c743a7c VS |
137 | $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__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 | $(__render___mac_rezcmd) | |
139 | $(__render___mac_setfilecmd) | |
ab892b95 VS |
140 | $(SAMPLES_RPATH_POSTLINK) |
141 | ||
1c3a6972 | 142 | render.app/Contents/PkgInfo: render$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns |
ab892b95 VS |
143 | mkdir -p render.app/Contents |
144 | mkdir -p render.app/Contents/MacOS | |
145 | mkdir -p render.app/Contents/Resources | |
146 | ||
147 | ||
148 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
149 | -e "s/EXECUTABLE/render/" \ | |
2c02ec05 | 150 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
151 | $(top_srcdir)/src/mac/Info.plist.in >render.app/Contents/Info.plist |
152 | ||
153 | ||
154 | echo -n "APPL????" >render.app/Contents/PkgInfo | |
155 | ||
156 | ||
b328fad3 | 157 | ln -f render$(EXEEXT) render.app/Contents/MacOS/render |
ab892b95 VS |
158 | |
159 | ||
160 | ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc render.app/Contents/Resources/render.rsrc | |
161 | ln -f $(top_srcdir)/src/mac/wxmac.icns render.app/Contents/Resources/wxmac.icns | |
162 | ||
1c3a6972 | 163 | @COND_PLATFORM_MACOSX_1@render_bundle: render.app/Contents/PkgInfo |
9c743a7c VS |
164 | |
165 | render_render.o: $(srcdir)/render.cpp | |
b328fad3 | 166 | $(CXXC) -c -o $@ $(RENDER_CXXFLAGS) $< |
9c743a7c VS |
167 | |
168 | render_sample_rc.o: $(srcdir)/../../samples/sample.rc | |
75a0a7b7 | 169 | $(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 |
9c743a7c VS |
170 | |
171 | uninstall: | |
172 | ||
173 | ||
174 | # Include dependency info, if present: | |
175 | @IF_GNU_MAKE@-include .deps/*.d | |
176 | ||
ab892b95 | 177 | .PHONY: all clean distclean install render_bundle uninstall |