3 # Author: Robert Roebling
6 # Copyright: (c) 1998, 1999
9 # Makefile for wxWindows library, GTK 1.2, Unix
12 EXTRACFLAGS=-DLEX_SCANNER
77 ../common/cmndata.cpp \
78 ../common/config.cpp \
80 ../common/datstrm.cpp \
81 ../common/dcbase.cpp \
82 ../common/dlgcmn.cpp \
83 ../common/docmdi.cpp \
84 ../common/docview.cpp \
85 ../common/dynarray.cpp \
86 ../common/dynlib.cpp \
89 ../common/fileconf.cpp \
90 ../common/filefn.cpp \
91 ../common/framecmn.cpp \
93 ../common/gdicmn.cpp \
95 ../common/helpbase.cpp \
98 ../common/imagjpeg.cpp \
99 ../common/imagbmp.cpp \
100 ../common/imaggif.cpp \
101 ../common/imagpng.cpp \
103 ../common/ipcbase.cpp \
104 ../common/layout.cpp \
107 ../common/longlong.cpp \
108 ../common/matrix.cpp \
109 ../common/memory.cpp \
110 ../common/mimetype.cpp \
111 ../common/module.cpp \
112 ../common/mstream.cpp \
113 ../common/object.cpp \
114 ../common/objstrm.cpp \
116 ../common/paper.cpp \
117 ../common/prntbase.cpp \
118 ../common/process.cpp \
119 ../common/protocol.cpp \
120 ../common/resource.cpp \
121 ../common/sckaddr.cpp \
122 ../common/sckfile.cpp \
123 ../common/sckint.cpp \
124 ../common/sckipc.cpp \
125 ../common/sckstrm.cpp \
126 ../common/serbase.cpp \
127 ../common/socket.cpp \
128 ../common/stream.cpp \
129 ../common/string.cpp \
130 ../common/tbarbase.cpp \
131 ../common/tbarsmpl.cpp \
132 ../common/textfile.cpp \
134 ../common/timercmn.cpp \
135 ../common/tokenzr.cpp \
137 ../common/utilscmn.cpp \
138 ../common/valgen.cpp \
139 ../common/validate.cpp \
140 ../common/valtext.cpp \
141 ../common/variant.cpp \
142 ../common/wfstream.cpp \
143 ../common/wincmn.cpp \
144 ../common/wxchar.cpp \
145 ../common/wxexpr.cpp \
146 ../common/zstream.cpp \
149 ../common/dbtable.cpp \
151 ../unix/threadpsx.cpp \
152 ../unix/utilsunx.cpp \
154 ../generic/caret.cpp \
155 ../generic/colrdlgg.cpp \
156 ../generic/dcpsg.cpp \
157 ../generic/dirdlgg.cpp \
158 ../generic/fontdlgg.cpp \
159 ../generic/gridg.cpp \
160 ../generic/helpext.cpp \
161 ../generic/helphtml.cpp \
162 ../generic/imaglist.cpp \
163 ../generic/laywin.cpp \
164 ../generic/listctrl.cpp \
165 ../generic/panelg.cpp \
166 ../generic/printps.cpp \
167 ../generic/prntdlgg.cpp \
168 ../generic/progdlgg.cpp \
169 ../generic/prop.cpp \
170 ../generic/propform.cpp \
171 ../generic/proplist.cpp \
172 ../generic/sashwin.cpp \
173 ../generic/scrolwin.cpp \
174 ../generic/splitter.cpp \
175 ../generic/statusbr.cpp \
176 ../generic/tabg.cpp \
177 ../generic/tipdlg.cpp \
178 ../generic/treectrl.cpp
182 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
183 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
184 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
185 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
186 ../zlib/infutil.c ../zlib/uncompr.c
259 # Only need to compile zlib files if we don't
260 # already have a zlib library installed on our system
261 # (or we wish to statically link them for some reason)
263 $(ZLIB_SRC) $(PNG_SRC) $(JPEG_SRC)
267 # Define library objects
269 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o)
271 $(WXLIB) : $(OBJECTS)
272 ar $(AROPTIONS) $@ $(OBJECTS)
275 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
276 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
278 # Replace lex with flex if you run into compilation
279 # problems with lex_yy.c. See also note about LEX_SCANNER
281 ../common/lex_yy.c: ../common/lexer.l
282 $(LEX) -o../common/lex.yy.c ../common/lexer.l
283 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
284 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
285 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
286 /bin/rm -f ../common/lex.yy.c
288 # Replace yacc with bison if you run into compilation
289 # problems with y_tab.c.
290 ../common/y_tab.c: ../common/parser.y
291 $(YACC) ../common/parser.y
292 mv y.tab.c ../common/y_tab.c
295 rm -f $(OBJECTS) $(WXLIB)