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 \
136 ../generic/choicdgg.cpp \
137 ../generic/colrdlgg.cpp \
138 ../generic/dirdlgg.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
166 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
167 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
168 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
169 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
170 ../zlib/infutil.c ../zlib/uncompr.c
177 # Only need to compile zlib files if we don't
178 # already have a zlib library installed on our system
179 # (or we wish to statically link them for some reason)
181 xmcombo/xmcombo.c # $(ZLIB_SRC)
185 # mdi/lib/XsComponent.C\
186 # mdi/lib/XsMDICanvas.C\
187 # mdi/lib/XsMDIWindow.C\
188 # mdi/lib/XsMotifWindow.C\
189 # mdi/lib/XsMoveOutline.C\
190 # mdi/lib/XsOutline.C\
191 # mdi/lib/XsResizeOutline.C
195 # Define library objects
197 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
199 $(WXLIB) : $(OBJECTS)
200 ar $(AROPTIONS) $@ $(OBJECTS)
203 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
204 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
206 # Replace lex with flex if you run into compilation
207 # problems with lex_yy.c. See also note about LEX_SCANNER
209 ../common/lex_yy.c: ../common/lexer.l
210 $(LEX) -o../common/lex.yy.c ../common/lexer.l
211 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
212 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
213 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
214 /bin/rm -f ../common/lex.yy.c
216 # Replace yacc with bison if you run into compilation
217 # problems with y_tab.c.
218 ../common/y_tab.c: ../common/parser.y
219 $(YACC) ../common/parser.y
220 mv y.tab.c ../common/y_tab.c
222 combobox/combobox.o: combobox/combobox.c
223 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
226 rm -f $(OBJECTS) $(WXLIB)