]>
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@ | |
9c743a7c VS |
16 | EXTRALIBS = @EXTRALIBS@ |
17 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ | |
18 | HOST_SUFFIX = @HOST_SUFFIX@ | |
19 | LDFLAGS = @LDFLAGS@ | |
20 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
21 | PIC_FLAG = @PIC_FLAG@ | |
22 | RESCOMP = @RESCOMP@ | |
23 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ | |
ab892b95 | 24 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
9c743a7c VS |
25 | SETFILE = @SETFILE@ |
26 | SHARED_LD_MODULE_CXX = @SHARED_LD_MODULE_CXX@ | |
27 | SO_SUFFIX_MODULE = @SO_SUFFIX_MODULE@ | |
28 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ | |
29 | TOOLKIT = @TOOLKIT@ | |
30 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
31 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
32 | srcdir = @srcdir@ | |
33 | top_builddir = @top_builddir@ | |
34 | top_srcdir = @top_srcdir@ | |
35 | ||
36 | ### Variables: ### | |
37 | ||
38 | LIBDIRNAME = $(top_builddir)lib | |
39 | RENDDLL_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
75a0a7b7 | 40 | -I$(top_srcdir)/include -DWXUSINGDLL $(CXXFLAGS) $(PIC_FLAG) |
9c743a7c VS |
41 | RENDDLL_OBJECTS = \ |
42 | renddll_renddll.o | |
43 | RENDER_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
75a0a7b7 VS |
44 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
45 | -I$(srcdir)/../../samples $(CXXFLAGS) | |
9c743a7c VS |
46 | RENDER_OBJECTS = \ |
47 | $(__render___win32rc) \ | |
48 | render_render.o | |
2c02ec05 | 49 | WX_VERSION = 2.5.0 |
9c743a7c VS |
50 | |
51 | ### Conditionally set variables: ### | |
52 | ||
9c743a7c VS |
53 | @COND_PLATFORM_UNIX_0@PLUGIN_VERSION = 250 |
54 | @COND_PLATFORM_UNIX_1@PLUGIN_VERSION = -2.5.0 | |
55 | @COND_USE_GUI_0@PORTNAME = base | |
56 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
57 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon | |
2c02ec05 | 58 | @COND_PLATFORM_WIN32_1@WXCOMPILER = _gcc |
9c743a7c VS |
59 | @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d |
60 | @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d | |
61 | @COND_UNICODE_1@WXUNICODEFLAG = u | |
62 | @COND_WXUNIV_1@WXUNIVNAME = univ | |
63 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL | |
64 | @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL | |
65 | @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL | |
9c743a7c VS |
66 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ |
67 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
68 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ | |
69 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
70 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
71 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ | |
72 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
73 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ | |
74 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
75 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
76 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \ | |
77 | @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
78 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ | |
79 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
80 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
81 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ | |
82 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
83 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ | |
75a0a7b7 | 84 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \ |
e8f60bac | 85 | $(__DLLFLAG_p_1) -i $(srcdir)/../../samples -o render Carbon.r \ |
ab892b95 | 86 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r |
9c743a7c VS |
87 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1) |
88 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = \ | |
89 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
90 | COND_MONOLITHIC_0___WXLIB_CORE_p = \ | |
91 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX) | |
92 | @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p) | |
93 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ | |
94 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
95 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) | |
96 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
97 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ | |
98 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ | |
99 | COND_SHARED_1___renddll___depname = \ | |
e8f60bac | 100 | librenddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE) |
9c743a7c VS |
101 | @COND_SHARED_1@__renddll___depname = $(COND_SHARED_1___renddll___depname) |
102 | @COND_PLATFORM_MAC_1@__render___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) | |
e8f60bac | 103 | @COND_PLATFORM_MAC_1@__render___mac_setfilecmd = $(SETFILE) -a C render |
9c743a7c | 104 | @COND_PLATFORM_WIN32_1@__render___win32rc = render_sample_rc.o |
ab892b95 | 105 | @COND_PLATFORM_MACOSX_1@__render_bundle___depname = render_bundle |
9c743a7c VS |
106 | |
107 | ### Targets: ### | |
108 | ||
e8f60bac | 109 | all: render $(__render_bundle___depname) $(__renddll___depname) |
9c743a7c VS |
110 | |
111 | clean: | |
ab892b95 | 112 | rm -rf ./.deps ./.pch |
9c743a7c | 113 | rm -f ./*.o |
e8f60bac | 114 | rm -f render |
ab892b95 | 115 | rm -rf render.app |
e8f60bac | 116 | rm -f librenddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE) |
9c743a7c VS |
117 | |
118 | distclean: clean | |
ab892b95 | 119 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
9c743a7c VS |
120 | |
121 | install: all | |
122 | ||
123 | install-strip: install | |
124 | ||
e8f60bac | 125 | @COND_SHARED_1@librenddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE): $(RENDDLL_OBJECTS) |
9c743a7c VS |
126 | @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) |
127 | ||
128 | renddll_renddll.o: $(srcdir)/renddll.cpp | |
e8f60bac | 129 | $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $< |
9c743a7c | 130 | |
e8f60bac | 131 | render: $(RENDER_OBJECTS) $(__render___win32rc) |
9c743a7c VS |
132 | $(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) |
133 | $(__render___mac_rezcmd) | |
134 | $(__render___mac_setfilecmd) | |
ab892b95 VS |
135 | $(SAMPLES_RPATH_POSTLINK) |
136 | ||
e8f60bac | 137 | render.app/Contents: render $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns |
ab892b95 VS |
138 | mkdir -p render.app/Contents |
139 | mkdir -p render.app/Contents/MacOS | |
140 | mkdir -p render.app/Contents/Resources | |
141 | ||
142 | ||
143 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
144 | -e "s/EXECUTABLE/render/" \ | |
2c02ec05 | 145 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
146 | $(top_srcdir)/src/mac/Info.plist.in >render.app/Contents/Info.plist |
147 | ||
148 | ||
149 | echo -n "APPL????" >render.app/Contents/PkgInfo | |
150 | ||
151 | ||
e8f60bac | 152 | ln -f render render.app/Contents/MacOS/render |
ab892b95 VS |
153 | |
154 | ||
155 | ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc render.app/Contents/Resources/render.rsrc | |
156 | ln -f $(top_srcdir)/src/mac/wxmac.icns render.app/Contents/Resources/wxmac.icns | |
157 | ||
158 | @COND_PLATFORM_MACOSX_1@render_bundle: render.app/Contents | |
9c743a7c VS |
159 | |
160 | render_render.o: $(srcdir)/render.cpp | |
e8f60bac | 161 | $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $< |
9c743a7c VS |
162 | |
163 | render_sample_rc.o: $(srcdir)/../../samples/sample.rc | |
75a0a7b7 | 164 | $(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 |
165 | |
166 | uninstall: | |
167 | ||
168 | ||
169 | # Include dependency info, if present: | |
170 | @IF_GNU_MAKE@-include .deps/*.d | |
171 | ||
ab892b95 | 172 | .PHONY: all clean distclean install render_bundle uninstall |