]> git.saurik.com Git - wxWidgets.git/blob - src/Makefile.am
second try...
[wxWidgets.git] / src / Makefile.am
1 SUFFIXES = .cpp
2
3 DEFS = $(TOOLKIT_DEF) $(WXDEBUG_DEFINE)
4 LIBS = $(GUILIBS)
5
6 VPATH = .:$(srcdir)/common:$(srcdir)/@TOOLKIT_DIR@:$(srcdir)/generic:$(EXTRA_VPATH)
7
8 lib_LTLIBRARIES = libwx_@WX_LIBRARY@.la
9
10 # these are the common files which always make part of the library
11 libwx__WX_LIBRARY__la_SOURCES = \
12 cmndata.cpp \
13 dynarray.cpp \
14 filefn.cpp \
15 hash.cpp \
16 list.cpp \
17 matrix.cpp \
18 memory.cpp \
19 module.cpp \
20 object.cpp \
21 string.cpp \
22 timercmn.cpp \
23 utilscmn.cpp \
24 tokenzr.cpp \
25 variant.cpp \
26 wxchar.cpp
27
28 # these are the sources which we build by our own rules
29 #
30 # TODO: parser.y can be included into SOURCES, but for the sake of my life I
31 # don't know where to put lexer.l - if I put it in the sources too,
32 # automake tries to build lexer.lo... and fails, of course. (VZ)
33 BUILT_SOURCES = parser.c lexer.c
34 parser.c: $(srcdir)/common/parser.y lexer.c
35 $(YACC) $(srcdir)/common/parser.y
36 @sed -e "s;$(srcdir)/common/y.tab.c;parser.y;g" < y.tab.c | \
37 sed -e "s/BUFSIZ/5000/g" | \
38 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
39 sed -e "s/yy/PROIO_yy/g" | \
40 sed -e "s/input/PROIO_input/g" | \
41 sed -e "s/unput/PROIO_unput/g" > parser.c
42 @$(RM) y.tab.c
43
44 lexer.c: $(srcdir)/common/lexer.l
45 $(LEX) $(srcdir)/common/lexer.l
46 @sed -e "s;$(srcdir)/common/lex.yy.c;lexer.l;g" < lex.yy.c | \
47 sed -e "s/yy/PROIO_yy/g" | \
48 sed -e "s/input/PROIO_input/g" | \
49 sed -e "s/unput/PROIO_unput/g" > lexer.c
50 @$(RM) lex.yy.c
51
52 # these are the files which are only sometimes linked into the library - they
53 # still *must* be all enumerated here to satisfy automake requirments!
54 #
55 # NB: the files are listed in directory/alphabetical order: first the files
56 # from common, then from generic, then from unix, then from gtk.
57 EXTRA_libwx__WX_LIBRARY__la_SOURCES = \
58 config.cpp \
59 date.cpp \
60 datetime.cpp \
61 datstrm.cpp \
62 db.cpp \
63 dbtable.cpp \
64 dcbase.cpp \
65 docmdi.cpp \
66 docview.cpp \
67 dynlib.cpp \
68 event.cpp \
69 file.cpp \
70 fileconf.cpp \
71 framecmn.cpp \
72 ftp.cpp \
73 gdicmn.cpp \
74 helpbase.cpp \
75 http.cpp \
76 image.cpp \
77 imaggif.cpp \
78 imagjpeg.cpp \
79 imagpng.cpp \
80 intl.cpp \
81 ipcbase.cpp \
82 layout.cpp \
83 log.cpp \
84 longlong.cpp \
85 mimetype.cpp \
86 mstream.cpp \
87 objstrm.cpp \
88 odbc.cpp \
89 paper.cpp \
90 prntbase.cpp \
91 process.cpp \
92 protocol.cpp \
93 resourc2.cpp \
94 resource.cpp \
95 sckaddr.cpp \
96 sckfile.cpp \
97 sckint.cpp \
98 sckipc.cpp \
99 sckstrm.cpp \
100 serbase.cpp \
101 socket.cpp \
102 stream.cpp \
103 tbarbase.cpp \
104 tbarsmpl.cpp \
105 textfile.cpp \
106 time.cpp \
107 url.cpp \
108 valgen.cpp \
109 validate.cpp \
110 valtext.cpp \
111 wfstream.cpp \
112 wincmn.cpp \
113 wxexpr.cpp \
114 zstream.cpp \
115 \
116 caret.cpp \
117 choicdgg.cpp \
118 colrdlgg.cpp \
119 dcpsg.cpp \
120 dirdlgg.cpp \
121 fontdlgg.cpp \
122 gridg.cpp \
123 helpext.cpp \
124 helphtml.cpp \
125 helpxlp.cpp \
126 imaglist.cpp \
127 laywin.cpp \
128 listctrl.cpp \
129 msgdlgg.cpp \
130 notebook.cpp \
131 panelg.cpp \
132 printps.cpp \
133 prntdlgg.cpp \
134 progdlgg.cpp \
135 prop.cpp \
136 propform.cpp \
137 proplist.cpp \
138 sashwin.cpp \
139 scrolwin.cpp \
140 splitter.cpp \
141 statusbr.cpp \
142 tabg.cpp \
143 textdlgg.cpp \
144 treectrl.cpp \
145 \
146 threadpsx.cpp \
147 utilsunx.cpp \
148 \
149 accel.cpp \
150 app.cpp \
151 bitmap.cpp \
152 bmpbuttn.cpp \
153 brush.cpp \
154 button.cpp \
155 checkbox.cpp \
156 checklst.cpp \
157 choice.cpp \
158 clipbrd.cpp \
159 colour.cpp \
160 combobox.cpp \
161 control.cpp \
162 cursor.cpp \
163 data.cpp \
164 dataobj.cpp \
165 dc.cpp \
166 dcclient.cpp \
167 dcmemory.cpp \
168 dcscreen.cpp \
169 dialog.cpp \
170 dnd.cpp \
171 filedlg.cpp \
172 font.cpp \
173 frame.cpp \
174 gauge.cpp \
175 gdiobj.cpp \
176 icon.cpp \
177 joystick.cpp \
178 listbox.cpp \
179 main.cpp \
180 mdi.cpp \
181 menu.cpp \
182 minifram.cpp \
183 notebook.cpp \
184 palette.cpp \
185 pen.cpp \
186 radiobox.cpp \
187 radiobut.cpp \
188 region.cpp \
189 scrolbar.cpp \
190 settings.cpp \
191 slider.cpp \
192 spinbutt.cpp \
193 statbmp.cpp \
194 statbox.cpp \
195 statline.cpp \
196 stattext.cpp \
197 tbargtk.cpp \
198 textctrl.cpp \
199 threadno.cpp \
200 threadsgi.cpp \
201 timer.cpp \
202 tooltip.cpp \
203 treectrl.cpp \
204 utilsgtk.cpp \
205 utilsres.cpp \
206 wave.cpp \
207 window.cpp
208
209 libwx__WX_LIBRARY__la_LDFLAGS = -release @WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
210 libwx__WX_LIBRARY__la_LIBADD = $(LTLIBOBJS)
211 libwx__WX_LIBRARY__la_DEPENDENCIES = $(libwx__WX_LIBRARY__la_LIBADD) lexer.l
212
213 libwx_@WX_LIBRARY@.la: $(libwx__WX_LIBRARY__la_OBJECTS) $(libwx__WX_LIBRARY__la_DEPENDENCIES)
214 $(CXXLINK) -rpath $(libdir) $(libwx__WX_LIBRARY__la_LDFLAGS) $(libwx__WX_LIBRARY__la_OBJECTS) $(libwx__WX_LIBRARY__la_LIBADD) $(LIBS)
215
216 # the files which we install manually (the rest is done by automake)
217 install-data-local:
218 @$(NORMAL_INSTALL)
219 $(mkinstalldirs) $(DESTDIR)$(includedir)/wx
220 $(mkinstalldirs) $(DESTDIR)$(includedir)/wx/generic
221 $(mkinstalldirs) $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@
222 $(mkinstalldirs) $(DESTDIR)$(includedir)/wx/protocol
223 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/include/wx
224 @for p in $(top_srcdir)/include/wx/*.h $(top_srcdir)/include/wx/*.cpp; do \
225 h=`basename $$p`; (set -x; \
226 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/$$h ); \
227 done
228 @for p in $(top_srcdir)/include/wx/generic/*.h ; do \
229 h=`basename $$p`; (set -x; \
230 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/generic/$$h ); \
231 done
232 @for p in $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.h ; do \
233 h=`basename $$p`; (set -x; \
234 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@/$$h ); \
235 done
236 @if [ @TOOLKIT_DIR@ = msw ]; then \
237 for p in $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.cur \
238 $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.ico \
239 $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.bmp \
240 $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.rc ; do \
241 h=`basename $$p`; (set -x; \
242 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@/$$h ); \
243 done; \
244 for p in $(top_srcdir)/include/wx/@TOOLKIT_DIR@/ctl3d/*.h ; do \
245 h=`basename $$p`; (set -x; \
246 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@/ctl3d/$$h ); \
247 done; \
248 for p in $(top_srcdir)/include/wx/@TOOLKIT_DIR@/gnuwin32/*.h ; do \
249 h=`basename $$p`; (set -x; \
250 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@/gnuwin32/$$h ); \
251 done; \
252 fi
253 @for p in $(top_srcdir)/include/wx/protocol/*.h ; do \
254 h=`basename $$p`; (set -x; \
255 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/protocol/$$h ); \
256 done
257 $(INSTALL_DATA) ../include/wx/@TOOLKIT_DIR@/setup.h $(DESTDIR)$(pkgdatadir)/include/wx/setup.h