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 \
34 ../common/layout.cpp \
37 ../common/matrix.cpp \
38 ../common/memory.cpp \
39 ../common/module.cpp \
40 ../common/object.cpp \
42 ../common/postscrp.cpp \
43 ../common/prntbase.cpp \
44 ../common/resource.cpp \
45 ../common/serbase.cpp \
46 ../common/string.cpp \
47 ../common/textfile.cpp \
48 ../common/tbarbase.cpp \
49 ../common/tbarsmpl.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 \
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/notebook.cpp \
147 ../generic/panelg.cpp \
148 ../generic/printps.cpp \
149 ../generic/prntdlgg.cpp \
150 ../generic/prop.cpp \
151 ../generic/propform.cpp \
152 ../generic/proplist.cpp \
153 ../generic/sashwin.cpp \
154 ../generic/scrolwin.cpp \
155 ../generic/splitter.cpp \
156 ../generic/statusbr.cpp \
157 ../generic/tabg.cpp \
158 ../generic/textdlgg.cpp \
159 ../generic/treectrl.cpp
161 # If you're not using the generic ones, you
162 # may wish to define platform-specific ones
170 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
171 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
172 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
173 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
174 ../zlib/infutil.c ../zlib/uncompr.c
181 # Only need to compile zlib files if we don't
182 # already have a zlib library installed on our system
183 # (or we wish to statically link them for some reason)
189 # mdi/lib/XsComponent.C\
190 # mdi/lib/XsMDICanvas.C\
191 # mdi/lib/XsMDIWindow.C\
192 # mdi/lib/XsMotifWindow.C\
193 # mdi/lib/XsMoveOutline.C\
194 # mdi/lib/XsOutline.C\
195 # mdi/lib/XsResizeOutline.C
197 all: $(WXLIB) png zlib
199 # Define library objects
201 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
203 $(WXLIB) : $(OBJECTS)
204 ar $(AROPTIONS) $@ $(OBJECTS)
207 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
208 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
210 # Replace lex with flex if you run into compilation
211 # problems with lex_yy.c. See also note about LEX_SCANNER
213 ../common/lex_yy.c: ../common/lexer.l
214 $(LEX) -o../common/lex.yy.c ../common/lexer.l
215 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
216 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
217 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
218 /bin/rm -f ../common/lex.yy.c
220 # Replace yacc with bison if you run into compilation
221 # problems with y_tab.c.
222 ../common/y_tab.c: ../common/parser.y
223 $(YACC) ../common/parser.y
224 mv y.tab.c ../common/y_tab.c
226 combobox/combobox.o: combobox/combobox.c
227 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
230 cd ../zlib; make -f makefile.unx motif
233 cd ../png; make -f makefile.unx motif
235 clean: cleanzlib cleanpng
236 rm -f $(OBJECTS) $(WXLIB)
239 cd ../zlib; make -f makefile.unx cleanmotif
242 cd ../png; make -f makefile.unx cleanmotif