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