3 # Author: Robert Roebling
9 # Makefile for wxGtk library, Unix
11 EXTRACFLAGS=-DLEX_SCANNER
17 ../common/cmndata.cpp \
18 ../common/config.cpp \
20 ../common/docmdi.cpp \
21 ../common/docview.cpp \
22 ../common/dynarray.cpp \
23 ../common/dynlib.cpp \
26 ../common/fileconf.cpp \
27 ../common/filefn.cpp \
28 ../common/gdicmn.cpp \
30 ../common/helpbase.cpp \
33 ../common/imagjpeg.cpp \
34 ../common/imagpng.cpp \
35 ../common/ipcbase.cpp \
36 ../common/layout.cpp \
39 ../common/matrix.cpp \
40 ../common/memory.cpp \
41 ../common/module.cpp \
42 ../common/object.cpp \
44 ../common/postscrp.cpp \
45 ../common/prntbase.cpp \
46 ../common/resource.cpp \
47 ../common/serbase.cpp \
48 ../common/string.cpp \
49 ../common/textfile.cpp \
51 ../common/timercmn.cpp \
52 ../common/utilscmn.cpp \
53 ../common/wincmn.cpp \
54 ../common/framecmn.cpp \
55 ../common/stream.cpp \
56 ../common/datstrm.cpp \
57 ../common/wfstream.cpp \
58 ../common/mstream.cpp \
59 ../common/zstream.cpp \
60 ../common/objstrm.cpp \
61 ../common/sckstrm.cpp \
62 ../common/validate.cpp \
63 ../common/valtext.cpp \
64 ../common/variant.cpp \
65 ../common/wxexpr.cpp \
66 ../common/socket.cpp \
67 ../common/sckaddr.cpp \
68 ../common/sckipc.cpp \
69 ../common/protocol.cpp \
73 ../common/tokenzr.cpp \
131 ../generic/choicdgg.cpp \
132 ../generic/colrdlgg.cpp \
133 ../generic/dirdlgg.cpp \
134 ../generic/fontdlgg.cpp \
135 ../generic/gridg.cpp \
136 ../generic/helpext.cpp \
137 ../generic/imaglist.cpp \
138 ../generic/listctrl.cpp \
139 ../generic/laywin.cpp \
140 ../generic/msgdlgg.cpp \
141 ../generic/panelg.cpp \
142 ../generic/printps.cpp \
143 ../generic/prntdlgg.cpp \
144 ../generic/sashwin.cpp \
145 ../generic/scrolwin.cpp \
146 ../generic/splitter.cpp \
147 ../generic/statusbr.cpp \
148 ../generic/tabg.cpp \
149 ../generic/textdlgg.cpp \
150 ../generic/treectrl.cpp
154 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
155 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
156 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
157 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
158 ../zlib/infutil.c ../zlib/uncompr.c
183 # Only need to compile zlib files if we don't
184 # already have a zlib library installed on our system
185 # (or we wish to statically link them for some reason)
187 $(ZLIB_SRC) $(PNG_SRC)
191 # Define library objects
193 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o)
195 $(WXLIB) : $(OBJECTS)
196 ar $(AROPTIONS) $@ $(OBJECTS)
199 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
200 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
202 # Replace lex with flex if you run into compilation
203 # problems with lex_yy.c. See also note about LEX_SCANNER
205 ../common/lex_yy.c: ../common/lexer.l
206 $(LEX) -o../common/lex.yy.c ../common/lexer.l
207 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
208 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
209 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
210 /bin/rm -f ../common/lex.yy.c
212 # Replace yacc with bison if you run into compilation
213 # problems with y_tab.c.
214 ../common/y_tab.c: ../common/parser.y
215 $(YACC) ../common/parser.y
216 mv y.tab.c ../common/y_tab.c
219 rm -f $(OBJECTS) $(WXLIB)