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 \
135 ../generic/choicdgg.cpp \
136 ../generic/colrdlgg.cpp \
137 ../generic/dirdlgg.cpp \
138 ../generic/fontdlgg.cpp \
139 ../generic/gridg.cpp \
140 ../generic/helpext.cpp \
141 ../generic/imaglist.cpp \
142 ../generic/listctrl.cpp \
143 ../generic/laywin.cpp \
144 ../generic/msgdlgg.cpp \
145 ../generic/notebook.cpp \
146 ../generic/panelg.cpp \
147 ../generic/printps.cpp \
148 ../generic/prntdlgg.cpp \
149 ../generic/prop.cpp \
150 ../generic/propform.cpp \
151 ../generic/proplist.cpp \
152 ../generic/sashwin.cpp \
153 ../generic/scrolwin.cpp \
154 ../generic/splitter.cpp \
155 ../generic/statusbr.cpp \
156 ../generic/tabg.cpp \
157 ../generic/textdlgg.cpp \
158 ../generic/treectrl.cpp
160 # If you're not using the generic ones, you
161 # may wish to define platform-specific ones
169 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
170 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
171 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
172 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
173 ../zlib/infutil.c ../zlib/uncompr.c
180 # Only need to compile zlib files if we don't
181 # already have a zlib library installed on our system
182 # (or we wish to statically link them for some reason)
188 # mdi/lib/XsComponent.C\
189 # mdi/lib/XsMDICanvas.C\
190 # mdi/lib/XsMDIWindow.C\
191 # mdi/lib/XsMotifWindow.C\
192 # mdi/lib/XsMoveOutline.C\
193 # mdi/lib/XsOutline.C\
194 # mdi/lib/XsResizeOutline.C
196 all: $(WXLIB) png zlib
198 # Define library objects
200 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
202 $(WXLIB) : $(OBJECTS)
203 ar $(AROPTIONS) $@ $(OBJECTS)
206 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
207 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
209 # Replace lex with flex if you run into compilation
210 # problems with lex_yy.c. See also note about LEX_SCANNER
212 ../common/lex_yy.c: ../common/lexer.l
213 $(LEX) -o../common/lex.yy.c ../common/lexer.l
214 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
215 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
216 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
217 /bin/rm -f ../common/lex.yy.c
219 # Replace yacc with bison if you run into compilation
220 # problems with y_tab.c.
221 ../common/y_tab.c: ../common/parser.y
222 $(YACC) ../common/parser.y
223 mv y.tab.c ../common/y_tab.c
225 combobox/combobox.o: combobox/combobox.c
226 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
229 cd ../zlib; make -f makefile.unx motif
232 cd ../png; make -f makefile.unx motif
234 clean: cleanzlib cleanpng
235 rm -f $(OBJECTS) $(WXLIB)
238 cd ../zlib; make -f makefile.unx cleanmotif
241 cd ../png; make -f makefile.unx cleanmotif