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