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