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/imagjpeg.cpp \
35 ../common/imagpng.cpp \
36 ../common/layout.cpp \
39 ../common/matrix.cpp \
40 ../common/memory.cpp \
41 ../common/module.cpp \
42 ../common/object.cpp \
44 ../common/prntbase.cpp \
45 ../common/resource.cpp \
46 ../common/serbase.cpp \
48 ../common/string.cpp \
49 ../common/textfile.cpp \
50 ../common/tbarbase.cpp \
51 ../common/tbarsmpl.cpp \
53 ../common/timercmn.cpp \
54 ../common/utilscmn.cpp \
55 ../common/wincmn.cpp \
56 ../common/framecmn.cpp \
57 ../common/stream.cpp \
58 ../common/datstrm.cpp \
59 ../common/wfstream.cpp \
60 ../common/mstream.cpp \
61 ../common/zstream.cpp \
62 ../common/objstrm.cpp \
63 ../common/sckstrm.cpp \
64 ../common/validate.cpp \
65 ../common/valgen.cpp \
66 ../common/valtext.cpp \
67 ../common/variant.cpp \
68 ../common/wxexpr.cpp \
69 ../common/socket.cpp \
70 ../common/sckaddr.cpp \
71 ../common/sckipc.cpp \
72 ../common/protocol.cpp \
76 ../common/tokenzr.cpp \
78 ../unix/threadpsx.cpp \
79 ../unix/utilsunx.cpp \
136 ../generic/choicdgg.cpp \
137 ../generic/colrdlgg.cpp \
138 ../generic/dirdlgg.cpp \
139 ../generic/dcpsg.cpp \
140 ../generic/fontdlgg.cpp \
141 ../generic/gridg.cpp \
142 ../generic/helphtml.cpp \
143 ../generic/helpext.cpp \
144 ../generic/imaglist.cpp \
145 ../generic/listctrl.cpp \
146 ../generic/laywin.cpp \
147 ../generic/msgdlgg.cpp \
148 ../generic/notebook.cpp \
149 ../generic/panelg.cpp \
150 ../generic/printps.cpp \
151 ../generic/prntdlgg.cpp \
152 ../generic/prop.cpp \
153 ../generic/propform.cpp \
154 ../generic/proplist.cpp \
155 ../generic/sashwin.cpp \
156 ../generic/scrolwin.cpp \
157 ../generic/splitter.cpp \
158 ../generic/statusbr.cpp \
159 ../generic/tabg.cpp \
160 ../generic/textdlgg.cpp \
161 ../generic/treectrl.cpp
164 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
165 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
166 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
167 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
168 ../zlib/infutil.c ../zlib/uncompr.c
175 # Only need to compile zlib files if we don't
176 # already have a zlib library installed on our system
177 # (or we wish to statically link them for some reason)
183 # mdi/lib/XsComponent.C\
184 # mdi/lib/XsMDICanvas.C\
185 # mdi/lib/XsMDIWindow.C\
186 # mdi/lib/XsMotifWindow.C\
187 # mdi/lib/XsMoveOutline.C\
188 # mdi/lib/XsOutline.C\
189 # mdi/lib/XsResizeOutline.C
191 all: $(WXLIB) png zlib
193 # Define library objects
195 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
197 $(WXLIB) : $(OBJECTS)
198 ar $(AROPTIONS) $@ $(OBJECTS)
201 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
202 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
204 # Replace lex with flex if you run into compilation
205 # problems with lex_yy.c. See also note about LEX_SCANNER
207 ../common/lex_yy.c: ../common/lexer.l
208 $(LEX) ../common/lexer.l
209 sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
210 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
211 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
214 # The above should work with both lex and flex, but just in case not,
215 # here are alternative syntaxes.
218 # $(LEX) -olex.yy.c ../common/lexer.l
221 # $(LEX) ../common/lexer.l
223 # Replace yacc with bison if you run into compilation
224 # problems with y_tab.c.
225 ../common/y_tab.c: ../common/parser.y
226 $(YACC) ../common/parser.y
227 mv y.tab.c ../common/y_tab.c
229 combobox/combobox.o: combobox/combobox.c
230 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
233 cd ../zlib; make -f makefile.unx motif
236 cd ../png; make -f makefile.unx motif
238 clean: cleanzlib cleanpng
239 rm -f $(OBJECTS) $(WXLIB)
242 cd ../zlib; make -f makefile.unx cleanmotif
245 cd ../png; make -f makefile.unx cleanmotif