]>
Commit | Line | Data |
---|---|---|
b1169abb VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
b1169abb VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
b1683d38 | 6 | |
b1683d38 | 7 | |
b1169abb | 8 | @MAKE_SET@ |
b1683d38 | 9 | |
b1169abb 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@ |
b1169abb | 17 | EXTRALIBS = @EXTRALIBS@ |
6c974d0b | 18 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ |
250700e4 | 19 | HOST_SUFFIX = @HOST_SUFFIX@ |
b1169abb VS |
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@ |
b1169abb | 25 | SETFILE = @SETFILE@ |
250700e4 | 26 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ |
b1169abb VS |
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@ | |
b1683d38 | 33 | |
b1169abb | 34 | ### Variables: ### |
b1683d38 | 35 | |
e9877ed3 | 36 | LIBDIRNAME = $(top_builddir)lib |
250700e4 | 37 | TEST_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
75a0a7b7 VS |
38 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
39 | -I$(srcdir)/../../../samples $(CXXFLAGS) | |
e9877ed3 VS |
40 | TEST_OBJECTS = \ |
41 | test_test.o \ | |
42 | $(__test___win32rc) | |
75a0a7b7 | 43 | WX_VERSION = 2.5.0 |
b1683d38 | 44 | |
b1169abb VS |
45 | ### Conditionally set variables: ### |
46 | ||
b328fad3 VS |
47 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) |
48 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
b1169abb VS |
49 | @COND_USE_GUI_0@PORTNAME = base |
50 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
51 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon | |
076f10e0 VS |
52 | @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d |
53 | @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d | |
b1169abb VS |
54 | @COND_UNICODE_1@WXUNICODEFLAG = u |
55 | @COND_WXUNIV_1@WXUNIVNAME = univ | |
56 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL | |
57 | @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL | |
58 | @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL | |
bdc408c4 VS |
59 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ |
60 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
e9877ed3 VS |
61 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ |
62 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
63 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
250700e4 RD |
64 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ |
65 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
e9877ed3 VS |
66 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ |
67 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
68 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
250700e4 RD |
69 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \ |
70 | @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
e9877ed3 VS |
71 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ |
72 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
73 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
250700e4 RD |
74 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ |
75 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
e9877ed3 | 76 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ |
75a0a7b7 | 77 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \ |
b328fad3 | 78 | $(__DLLFLAG_p_1) -i $(srcdir)/../../../samples -o test$(EXEEXT) Carbon.r \ |
ab892b95 | 79 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r |
e9877ed3 | 80 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1) |
250700e4 RD |
81 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = \ |
82 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
e9877ed3 VS |
83 | COND_MONOLITHIC_0___WXLIB_CORE_p = \ |
84 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX) | |
85 | @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p) | |
86 | COND_MONOLITHIC_0___WXLIB_HTML_p = \ | |
87 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html-2.5$(HOST_SUFFIX) | |
88 | @COND_MONOLITHIC_0@__WXLIB_HTML_p = $(COND_MONOLITHIC_0___WXLIB_HTML_p) | |
89 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ | |
90 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
91 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) | |
92 | @COND_MONOLITHIC_0@__WXLIB_NET_p = \ | |
93 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net-2.5$(HOST_SUFFIX) | |
b1169abb VS |
94 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ |
95 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ | |
96 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ | |
97 | @COND_PLATFORM_MAC_1@__test___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) | |
b328fad3 VS |
98 | @COND_PLATFORM_MAC_1@__test___mac_setfilecmd = \ |
99 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C test$(EXEEXT) | |
b1169abb | 100 | @COND_PLATFORM_WIN32_1@__test___win32rc = test_test_rc.o |
ab892b95 | 101 | @COND_PLATFORM_MACOSX_1@__test_bundle___depname = test_bundle |
b1169abb VS |
102 | |
103 | ### Targets: ### | |
104 | ||
b328fad3 | 105 | all: test$(EXEEXT) $(__test_bundle___depname) data |
b1169abb VS |
106 | |
107 | clean: | |
ab892b95 | 108 | rm -rf ./.deps ./.pch |
e9877ed3 | 109 | rm -f ./*.o |
b328fad3 | 110 | rm -f test$(EXEEXT) |
ab892b95 | 111 | rm -rf test.app |
b1169abb VS |
112 | |
113 | data: | |
114 | @mkdir -p . | |
115 | @for f in f.html fft.html imagemap.htm imagemap.png pic.png pic2.bmp tables.htm test.htm i18n.gif 8859_2.htm cp1250.htm regres.htm; do \ | |
116 | if test \( ! -s ./$$f \) -o \( $(srcdir)/$$f -nt ./$$f \) ; then \ | |
117 | cp -pRf $(srcdir)/$$f . ; \ | |
118 | fi; \ | |
119 | done | |
120 | ||
121 | distclean: clean | |
ab892b95 | 122 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
b1169abb VS |
123 | |
124 | install: all | |
125 | ||
126 | install-strip: install | |
127 | ||
b328fad3 | 128 | test$(EXEEXT): $(TEST_OBJECTS) $(__test___win32rc) |
e9877ed3 | 129 | $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_NET_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) |
b1169abb VS |
130 | $(__test___mac_rezcmd) |
131 | $(__test___mac_setfilecmd) | |
ab892b95 VS |
132 | $(SAMPLES_RPATH_POSTLINK) |
133 | ||
1c3a6972 | 134 | test.app/Contents/PkgInfo: test$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns |
ab892b95 VS |
135 | mkdir -p test.app/Contents |
136 | mkdir -p test.app/Contents/MacOS | |
137 | mkdir -p test.app/Contents/Resources | |
138 | ||
139 | ||
140 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
141 | -e "s/EXECUTABLE/test/" \ | |
75a0a7b7 | 142 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
143 | $(top_srcdir)/src/mac/Info.plist.in >test.app/Contents/Info.plist |
144 | ||
145 | ||
146 | echo -n "APPL????" >test.app/Contents/PkgInfo | |
147 | ||
148 | ||
b328fad3 | 149 | ln -f test$(EXEEXT) test.app/Contents/MacOS/test |
ab892b95 VS |
150 | |
151 | ||
152 | ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc test.app/Contents/Resources/test.rsrc | |
153 | ln -f $(top_srcdir)/src/mac/wxmac.icns test.app/Contents/Resources/wxmac.icns | |
154 | ||
1c3a6972 | 155 | @COND_PLATFORM_MACOSX_1@test_bundle: test.app/Contents/PkgInfo |
b1169abb VS |
156 | |
157 | test_test.o: $(srcdir)/test.cpp | |
b328fad3 | 158 | $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $< |
b1169abb VS |
159 | |
160 | test_test_rc.o: $(srcdir)/test.rc | |
75a0a7b7 | 161 | $(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 |
b1169abb VS |
162 | |
163 | uninstall: | |
164 | ||
165 | ||
166 | # Include dependency info, if present: | |
167 | @IF_GNU_MAKE@-include .deps/*.d | |
168 | ||
ab892b95 | 169 | .PHONY: all clean data distclean install test_bundle uninstall |