]>
Commit | Line | Data |
---|---|---|
9c743a7c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b17c1746 | 3 | # Bakefile 0.1.2 (http://bakefile.sourceforge.net) |
9c743a7c VS |
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@ | |
b17c1746 DE |
13 | SHARED_LD_MODULE_CXX = @SHARED_LD_MODULE_CXX@ |
14 | SO_SUFFIX_MODULE = @SO_SUFFIX_MODULE@ | |
15 | EXEEXT = @EXEEXT@ | |
16 | RESCOMP = @RESCOMP@ | |
17 | SETFILE = @SETFILE@ | |
18 | PIC_FLAG = @PIC_FLAG@ | |
19 | NM = @NM@ | |
20 | srcdir = @srcdir@ | |
21 | top_srcdir = @top_srcdir@ | |
22 | top_builddir = @top_builddir@ | |
23 | DLLPREFIX_MODULE = @DLLPREFIX_MODULE@ | |
24 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
9c743a7c VS |
25 | CXX = @CXX@ |
26 | CXXFLAGS = @CXXFLAGS@ | |
b17c1746 DE |
27 | CPPFLAGS = @CPPFLAGS@ |
28 | LDFLAGS = @LDFLAGS@ | |
29 | TOOLKIT = @TOOLKIT@ | |
30 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
31 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
32 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ | |
9c743a7c VS |
33 | EXTRALIBS = @EXTRALIBS@ |
34 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ | |
35 | HOST_SUFFIX = @HOST_SUFFIX@ | |
9c743a7c | 36 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ |
ab892b95 | 37 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
9c743a7c VS |
38 | |
39 | ### Variables: ### | |
40 | ||
b71531ad | 41 | DESTDIR = |
b17c1746 | 42 | WX_VERSION = 2.5.1 |
9c743a7c | 43 | LIBDIRNAME = $(top_builddir)lib |
9bfe7ad9 VS |
44 | RENDER_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \ |
45 | $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS) | |
9c743a7c VS |
46 | RENDER_OBJECTS = \ |
47 | $(__render___win32rc) \ | |
a4ad36cd | 48 | $(__render_os2_lib_res) \ |
9c743a7c | 49 | render_render.o |
b17c1746 DE |
50 | RENDDLL_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -DWXUSINGDLL \ |
51 | $(PIC_FLAG) $(CPPFLAGS) $(CXXFLAGS) | |
52 | RENDDLL_OBJECTS = \ | |
53 | renddll_renddll.o | |
9c743a7c VS |
54 | |
55 | ### Conditionally set variables: ### | |
56 | ||
b328fad3 VS |
57 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) |
58 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
9c743a7c VS |
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 | |
b17c1746 DE |
67 | @COND_PLATFORM_UNIX_0@PLUGIN_VERSION = 251 |
68 | @COND_PLATFORM_UNIX_1@PLUGIN_VERSION = -2.5.1 | |
69 | @COND_PLATFORM_MAC_1@__render___mac_setfilecmd = \ | |
70 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C render$(EXEEXT) | |
71 | @COND_PLATFORM_MAC_1@__render___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) | |
72 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ | |
73 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ | |
9c743a7c VS |
74 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL |
75 | @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL | |
76 | @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL | |
b17c1746 DE |
77 | COND_PLATFORM_OS2_1___render___os2_emxbindcmd = $(NM) render$(EXEEXT) | if grep \ |
78 | -q pmwin.763 ; then emxbind -ep render$(EXEEXT) ; fi | |
79 | @COND_PLATFORM_OS2_1@__render___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___render___os2_emxbindcmd) | |
80 | @COND_PLATFORM_WIN32_1@__render___win32rc = render_sample_rc.o | |
81 | @COND_PLATFORM_OS2_1@__render_os2_lib_res = \ | |
82 | @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res | |
83 | @COND_PLATFORM_MACOSX_1@__render_bundle___depname = render_bundle | |
84 | COND_SHARED_1___renddll___depname = \ | |
85 | $(DLLPREFIX_MODULE)renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE) | |
86 | @COND_SHARED_1@__renddll___depname = $(COND_SHARED_1___renddll___depname) | |
9c743a7c | 87 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ |
9bfe7ad9 VS |
88 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \ |
89 | $(srcdir)/../../samples -o render$(EXEEXT) Carbon.r \ | |
ec08d395 | 90 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r |
9c743a7c | 91 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1) |
b17c1746 | 92 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ |
9c743a7c VS |
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) | |
b17c1746 DE |
96 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = \ |
97 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
9c743a7c VS |
98 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ |
99 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
100 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) | |
b17c1746 DE |
101 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ |
102 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
103 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
104 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ | |
105 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
106 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
107 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ | |
108 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
109 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
110 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ | |
111 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
112 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ | |
113 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
114 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \ | |
115 | @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
116 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ | |
117 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
9c743a7c VS |
118 | |
119 | ### Targets: ### | |
120 | ||
b328fad3 | 121 | all: render$(EXEEXT) $(__render_bundle___depname) $(__renddll___depname) |
9c743a7c | 122 | |
b17c1746 DE |
123 | install: all |
124 | ||
125 | uninstall: | |
126 | ||
127 | install-strip: install | |
128 | ||
9c743a7c | 129 | clean: |
ab892b95 | 130 | rm -rf ./.deps ./.pch |
9c743a7c | 131 | rm -f ./*.o |
b328fad3 | 132 | rm -f render$(EXEEXT) |
ab892b95 | 133 | rm -rf render.app |
b328fad3 | 134 | rm -f $(DLLPREFIX_MODULE)renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE) |
9c743a7c VS |
135 | |
136 | distclean: clean | |
ab892b95 | 137 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
9c743a7c | 138 | |
b328fad3 | 139 | render$(EXEEXT): $(RENDER_OBJECTS) $(__render___win32rc) |
ec08d395 | 140 | $(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) |
9c743a7c VS |
141 | $(__render___mac_rezcmd) |
142 | $(__render___mac_setfilecmd) | |
ec08d395 | 143 | $(__render___os2_emxbindcmd) |
ab892b95 VS |
144 | $(SAMPLES_RPATH_POSTLINK) |
145 | ||
ec08d395 | 146 | render.app/Contents/PkgInfo: render$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns |
ab892b95 VS |
147 | mkdir -p render.app/Contents |
148 | mkdir -p render.app/Contents/MacOS | |
149 | mkdir -p render.app/Contents/Resources | |
150 | ||
151 | ||
152 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
153 | -e "s/EXECUTABLE/render/" \ | |
2c02ec05 | 154 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
155 | $(top_srcdir)/src/mac/Info.plist.in >render.app/Contents/Info.plist |
156 | ||
157 | ||
158 | echo -n "APPL????" >render.app/Contents/PkgInfo | |
159 | ||
160 | ||
b328fad3 | 161 | ln -f render$(EXEEXT) render.app/Contents/MacOS/render |
ab892b95 VS |
162 | |
163 | ||
a4ad36cd VS |
164 | ln -sf $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc render.app/Contents/Resources/render.rsrc |
165 | ln -sf $(top_srcdir)/src/mac/wxmac.icns render.app/Contents/Resources/wxmac.icns | |
ab892b95 | 166 | |
1c3a6972 | 167 | @COND_PLATFORM_MACOSX_1@render_bundle: render.app/Contents/PkgInfo |
9c743a7c | 168 | |
b17c1746 DE |
169 | @COND_SHARED_1@$(DLLPREFIX_MODULE)renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(PLUGIN_VERSION)$(WXCOMPILER).$(SO_SUFFIX_MODULE): $(RENDDLL_OBJECTS) |
170 | @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) | |
9c743a7c VS |
171 | |
172 | render_sample_rc.o: $(srcdir)/../../samples/sample.rc | |
9bfe7ad9 | 173 | $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples |
9c743a7c | 174 | |
b17c1746 DE |
175 | render_render.o: $(srcdir)/render.cpp |
176 | $(CXXC) -c -o $@ $(RENDER_CXXFLAGS) $< | |
177 | ||
178 | renddll_renddll.o: $(srcdir)/renddll.cpp | |
179 | $(CXXC) -c -o $@ $(RENDDLL_CXXFLAGS) $< | |
9c743a7c VS |
180 | |
181 | ||
182 | # Include dependency info, if present: | |
183 | @IF_GNU_MAKE@-include .deps/*.d | |
184 | ||
b17c1746 | 185 | .PHONY: all install uninstall clean distclean render_bundle |