]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/Makefile.in
1c017b35ed66087dc54d371d564e808c0db689fc
[wxWidgets.git] / samples / widgets / Makefile.in
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@
16 EXEEXT = @EXEEXT@
17 EXTRALIBS = @EXTRALIBS@
18 EXTRALIBS_GUI = @EXTRALIBS_GUI@
19 HOST_SUFFIX = @HOST_SUFFIX@
20 LDFLAGS = @LDFLAGS@
21 LDFLAGS_GUI = @LDFLAGS_GUI@
22 NM = @NM@
23 RESCOMP = @RESCOMP@
24 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
25 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
26 SETFILE = @SETFILE@
27 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
28 TOOLKIT = @TOOLKIT@
29 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
30 TOOLKIT_VERSION = @TOOLKIT_VERSION@
31 srcdir = @srcdir@
32 top_builddir = @top_builddir@
33 top_srcdir = @top_srcdir@
34
35 ### Variables: ###
36
37 DESTDIR =
38 LIBDIRNAME = $(top_builddir)lib
39 WIDGETS_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
40 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
41 -I$(srcdir)/../../samples $(CXXFLAGS)
42 WIDGETS_OBJECTS = \
43 widgets_button.o \
44 widgets_combobox.o \
45 widgets_gauge.o \
46 widgets_listbox.o \
47 widgets_notebook.o \
48 widgets_radiobox.o \
49 widgets_slider.o \
50 widgets_spinbtn.o \
51 widgets_static.o \
52 widgets_textctrl.o \
53 widgets_widgets.o \
54 $(__widgets___win32rc)
55 WX_VERSION = 2.5.1
56
57 ### Conditionally set variables: ###
58
59 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
60 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
61 @COND_USE_GUI_0@PORTNAME = base
62 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
63 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
64 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
65 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
66 @COND_UNICODE_1@WXUNICODEFLAG = u
67 @COND_WXUNIV_1@WXUNIVNAME = univ
68 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
69 @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
70 @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
71 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
72 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
73 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
74 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
75 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
76 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
77 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
78 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
79 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
80 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
81 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
82 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
83 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
84 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
85 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
86 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
87 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
88 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
89 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
90 $(__DLLFLAG_p_1) -i $(srcdir)/../../samples -o widgets$(EXEEXT) Carbon.r \
91 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r
92 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
93 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
94 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
95 COND_MONOLITHIC_0___WXLIB_CORE_p = \
96 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
97 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
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)
101 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
103 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
104 @COND_PLATFORM_MAC_1@__widgets___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
105 @COND_PLATFORM_MAC_1@__widgets___mac_setfilecmd = \
106 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C widgets$(EXEEXT)
107 COND_PLATFORM_OS2_1___widgets___os2_emxbindcmd = $(NM) widgets$(EXEEXT) | if \
108 grep -q pmwin.763 ; then emxbind -ep widgets$(EXEEXT) ; fi
109 @COND_PLATFORM_OS2_1@__widgets___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___widgets___os2_emxbindcmd)
110 @COND_PLATFORM_WIN32_1@__widgets___win32rc = widgets_widgets_rc.o
111 @COND_PLATFORM_MACOSX_1@__widgets_bundle___depname = widgets_bundle
112
113 ### Targets: ###
114
115 all: widgets$(EXEEXT) $(__widgets_bundle___depname)
116
117 clean:
118 rm -rf ./.deps ./.pch
119 rm -f ./*.o
120 rm -f widgets$(EXEEXT)
121 rm -rf widgets.app
122
123 distclean: clean
124 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
125
126 install: all
127
128 install-strip: install
129
130 uninstall:
131
132 widgets$(EXEEXT): $(WIDGETS_OBJECTS) $(__widgets___win32rc)
133 $(CXX) -o $@ $(WIDGETS_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)
134 $(__widgets___mac_rezcmd)
135 $(__widgets___mac_setfilecmd)
136 $(__widgets___os2_emxbindcmd)
137 $(SAMPLES_RPATH_POSTLINK)
138
139 widgets.app/Contents/PkgInfo: widgets$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
140 mkdir -p widgets.app/Contents
141 mkdir -p widgets.app/Contents/MacOS
142 mkdir -p widgets.app/Contents/Resources
143
144
145 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
146 -e "s/EXECUTABLE/widgets/" \
147 -e "s/VERSION/$(WX_VERSION)/" \
148 $(top_srcdir)/src/mac/Info.plist.in >widgets.app/Contents/Info.plist
149
150
151 echo -n "APPL????" >widgets.app/Contents/PkgInfo
152
153
154 ln -f widgets$(EXEEXT) widgets.app/Contents/MacOS/widgets
155
156
157 ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc widgets.app/Contents/Resources/widgets.rsrc
158 ln -f $(top_srcdir)/src/mac/wxmac.icns widgets.app/Contents/Resources/wxmac.icns
159
160 @COND_PLATFORM_MACOSX_1@widgets_bundle: widgets.app/Contents/PkgInfo
161
162 widgets_button.o: $(srcdir)/button.cpp
163 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
164
165 widgets_combobox.o: $(srcdir)/combobox.cpp
166 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
167
168 widgets_gauge.o: $(srcdir)/gauge.cpp
169 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
170
171 widgets_listbox.o: $(srcdir)/listbox.cpp
172 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
173
174 widgets_notebook.o: $(srcdir)/notebook.cpp
175 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
176
177 widgets_radiobox.o: $(srcdir)/radiobox.cpp
178 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
179
180 widgets_slider.o: $(srcdir)/slider.cpp
181 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
182
183 widgets_spinbtn.o: $(srcdir)/spinbtn.cpp
184 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
185
186 widgets_static.o: $(srcdir)/static.cpp
187 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
188
189 widgets_textctrl.o: $(srcdir)/textctrl.cpp
190 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
191
192 widgets_widgets.o: $(srcdir)/widgets.cpp
193 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
194
195 widgets_widgets_rc.o: $(srcdir)/widgets.rc
196 $(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
197
198
199 # Include dependency info, if present:
200 @IF_GNU_MAKE@-include .deps/*.d
201
202 .PHONY: all clean distclean install uninstall widgets_bundle