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 \
49 ../common/timercmn.cpp \
50 ../common/utilscmn.cpp \
51 ../common/wincmn.cpp \
52 ../common/framecmn.cpp \
53 ../common/stream.cpp \
54 ../common/datstrm.cpp \
55 ../common/fstream.cpp \
56 ../common/mstream.cpp \
57 ../common/zstream.cpp \
58 ../common/objstrm.cpp \
59 ../common/sckstrm.cpp \
60 ../common/validate.cpp \
61 ../common/valtext.cpp \
62 ../common/variant.cpp \
63 ../common/wxexpr.cpp \
64 ../common/socket.cpp \
65 ../common/sckaddr.cpp \
66 ../common/sckipc.cpp \
67 ../common/protocol.cpp \
71 ../common/tokenzr.cpp \
135 ../generic/choicdgg.cpp \
136 ../generic/colrdlgg.cpp \
137 ../generic/fontdlgg.cpp \
138 ../generic/gridg.cpp \
139 ../generic/imaglist.cpp \
140 ../generic/listctrl.cpp \
141 ../generic/laywin.cpp \
142 ../generic/msgdlgg.cpp \
143 ../generic/panelg.cpp \
144 ../generic/printps.cpp \
145 ../generic/prntdlgg.cpp \
146 ../generic/sashwin.cpp \
147 ../generic/scrolwin.cpp \
148 ../generic/splitter.cpp \
149 ../generic/statusbr.cpp \
150 ../generic/tabg.cpp \
151 ../generic/textdlgg.cpp \
152 ../generic/treectrl.cpp
154 # If you're not using the generic ones, you
155 # may wish to define platform-specific ones
171 mdi/lib/XsComponent.C\
172 mdi/lib/XsMDICanvas.C\
173 mdi/lib/XsMDIWindow.C\
174 mdi/lib/XsMotifWindow.C\
175 mdi/lib/XsMoveOutline.C\
177 mdi/lib/XsResizeOutline.C
181 # Define library objects
183 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
185 $(WXLIB) : $(OBJECTS)
186 ar $(AROPTIONS) $@ $(OBJECTS)
189 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
190 $(CCLEX) -c $(CFLAGS) -o $@ ../common/y_tab.c
192 # Replace lex with flex if you run into compilation
193 # problems with lex_yy.c. See also note about LEX_SCANNER
195 ../common/lex_yy.c: ../common/lexer.l
196 $(LEX) -o../common/lex.yy.c ../common/lexer.l
197 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
198 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
199 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
200 /bin/rm -f ../common/lex.yy.c
202 # Replace yacc with bison if you run into compilation
203 # problems with y_tab.c.
204 ../common/y_tab.c: ../common/parser.y
205 $(YACC) ../common/parser.y
206 mv y.tab.c ../common/y_tab.c
208 combobox/combobox.o: combobox/combobox.c
209 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
212 rm -f $(OBJECTS) $(WXLIB)