9 # Makefile for wxMotif 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 \
32 ../common/ipcbase.cpp \
33 ../common/layout.cpp \
36 ../common/matrix.cpp \
37 ../common/memory.cpp \
38 ../common/module.cpp \
39 ../common/object.cpp \
41 ../common/postscrp.cpp \
42 ../common/prntbase.cpp \
43 ../common/resource.cpp \
44 ../common/serbase.cpp \
45 ../common/string.cpp \
46 ../common/textfile.cpp \
47 ../common/tbarbase.cpp \
48 ../common/tbarsmpl.cpp \
50 ../common/timercmn.cpp \
51 ../common/utilscmn.cpp \
52 ../common/wincmn.cpp \
53 ../common/framecmn.cpp \
54 ../common/stream.cpp \
55 ../common/datstrm.cpp \
56 ../common/wfstream.cpp \
57 ../common/mstream.cpp \
58 ../common/zstream.cpp \
59 ../common/objstrm.cpp \
60 ../common/sckstrm.cpp \
61 ../common/validate.cpp \
62 ../common/valtext.cpp \
63 ../common/variant.cpp \
64 ../common/wxexpr.cpp \
65 ../common/socket.cpp \
66 ../common/sckaddr.cpp \
67 ../common/sckipc.cpp \
68 ../common/protocol.cpp \
72 ../common/tokenzr.cpp \
137 ../generic/choicdgg.cpp \
138 ../generic/colrdlgg.cpp \
139 ../generic/fontdlgg.cpp \
140 ../generic/gridg.cpp \
141 ../generic/helpext.cpp \
142 ../generic/imaglist.cpp \
143 ../generic/listctrl.cpp \
144 ../generic/laywin.cpp \
145 ../generic/msgdlgg.cpp \
146 ../generic/panelg.cpp \
147 ../generic/printps.cpp \
148 ../generic/prntdlgg.cpp \
149 ../generic/sashwin.cpp \
150 ../generic/scrolwin.cpp \
151 ../generic/splitter.cpp \
152 ../generic/statusbr.cpp \
153 ../generic/tabg.cpp \
154 ../generic/textdlgg.cpp \
155 ../generic/treectrl.cpp
157 # If you're not using the generic ones, you
158 # may wish to define platform-specific ones
165 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
166 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
167 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
168 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
169 ../zlib/infutil.c ../zlib/uncompr.c
176 # Only need to compile zlib files if we don't
177 # already have a zlib library installed on our system
178 # (or we wish to statically link them for some reason)
180 xmcombo/xmcombo.c # $(ZLIB_SRC)
184 # mdi/lib/XsComponent.C\
185 # mdi/lib/XsMDICanvas.C\
186 # mdi/lib/XsMDIWindow.C\
187 # mdi/lib/XsMotifWindow.C\
188 # mdi/lib/XsMoveOutline.C\
189 # mdi/lib/XsOutline.C\
190 # mdi/lib/XsResizeOutline.C
194 # Define library objects
196 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
198 $(WXLIB) : $(OBJECTS)
199 ar $(AROPTIONS) $@ $(OBJECTS)
202 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
203 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
205 # Replace lex with flex if you run into compilation
206 # problems with lex_yy.c. See also note about LEX_SCANNER
208 ../common/lex_yy.c: ../common/lexer.l
209 $(LEX) -o../common/lex.yy.c ../common/lexer.l
210 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
211 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
212 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
213 /bin/rm -f ../common/lex.yy.c
215 # Replace yacc with bison if you run into compilation
216 # problems with y_tab.c.
217 ../common/y_tab.c: ../common/parser.y
218 $(YACC) ../common/parser.y
219 mv y.tab.c ../common/y_tab.c
221 combobox/combobox.o: combobox/combobox.c
222 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
225 rm -f $(OBJECTS) $(WXLIB)