9 # Makefile for wxMotif library, Unix
11 EXTRACFLAGS=-DLEX_SCANNER
17 ../common/cmndata.cpp \
18 ../common/config.cpp \
19 ../common/dcbase.cpp \
21 ../common/docmdi.cpp \
22 ../common/docview.cpp \
23 ../common/dynarray.cpp \
24 ../common/dynlib.cpp \
27 ../common/fileconf.cpp \
28 ../common/filefn.cpp \
29 ../common/gdicmn.cpp \
31 ../common/helpbase.cpp \
33 ../common/ipcbase.cpp \
35 ../common/imagjpeg.cpp \
36 ../common/imagpng.cpp \
37 ../common/imaggif.cpp \
38 ../common/layout.cpp \
41 ../common/matrix.cpp \
42 ../common/memory.cpp \
43 ../common/module.cpp \
44 ../common/object.cpp \
46 ../common/prntbase.cpp \
47 ../common/resource.cpp \
48 ../common/serbase.cpp \
50 ../common/string.cpp \
51 ../common/textfile.cpp \
52 ../common/tbarbase.cpp \
53 ../common/tbarsmpl.cpp \
55 ../common/timercmn.cpp \
56 ../common/utilscmn.cpp \
57 ../common/wincmn.cpp \
58 ../common/framecmn.cpp \
59 ../common/stream.cpp \
60 ../common/datstrm.cpp \
61 ../common/wfstream.cpp \
62 ../common/mstream.cpp \
63 ../common/zstream.cpp \
64 ../common/objstrm.cpp \
65 ../common/sckstrm.cpp \
66 ../common/validate.cpp \
67 ../common/valgen.cpp \
68 ../common/valtext.cpp \
69 ../common/variant.cpp \
70 ../common/wxexpr.cpp \
71 ../common/wxchar.cpp \
72 ../common/socket.cpp \
73 ../common/sckaddr.cpp \
74 ../common/sckint.cpp \
75 ../common/sckipc.cpp \
76 ../common/protocol.cpp \
80 ../common/tokenzr.cpp \
82 ../unix/threadpsx.cpp \
83 ../unix/utilsunx.cpp \
140 ../generic/choicdgg.cpp \
141 ../generic/colrdlgg.cpp \
142 ../generic/dirdlgg.cpp \
143 ../generic/dcpsg.cpp \
144 ../generic/fontdlgg.cpp \
145 ../generic/gridg.cpp \
146 ../generic/helphtml.cpp \
147 ../generic/helpext.cpp \
148 ../generic/imaglist.cpp \
149 ../generic/listctrl.cpp \
150 ../generic/laywin.cpp \
151 ../generic/msgdlgg.cpp \
152 ../generic/notebook.cpp \
153 ../generic/panelg.cpp \
154 ../generic/printps.cpp \
155 ../generic/prntdlgg.cpp \
156 ../generic/prop.cpp \
157 ../generic/propform.cpp \
158 ../generic/proplist.cpp \
159 ../generic/sashwin.cpp \
160 ../generic/scrolwin.cpp \
161 ../generic/splitter.cpp \
162 ../generic/statusbr.cpp \
163 ../generic/tabg.cpp \
164 ../generic/textdlgg.cpp \
165 ../generic/treectrl.cpp
168 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
169 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
170 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
171 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
172 ../zlib/infutil.c ../zlib/uncompr.c
179 # Only need to compile zlib files if we don't
180 # already have a zlib library installed on our system
181 # (or we wish to statically link them for some reason)
187 # mdi/lib/XsComponent.C\
188 # mdi/lib/XsMDICanvas.C\
189 # mdi/lib/XsMDIWindow.C\
190 # mdi/lib/XsMotifWindow.C\
191 # mdi/lib/XsMoveOutline.C\
192 # mdi/lib/XsOutline.C\
193 # mdi/lib/XsResizeOutline.C
195 all: $(WXLIB) png zlib
197 # Define library objects
199 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
201 $(WXLIB) : $(OBJECTS)
202 ar $(AROPTIONS) $@ $(OBJECTS)
205 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
206 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
208 # Replace lex with flex if you run into compilation
209 # problems with lex_yy.c. See also note about LEX_SCANNER
211 ../common/lex_yy.c: ../common/lexer.l
212 $(LEX) ../common/lexer.l
213 sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
214 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
215 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
218 # The above should work with both lex and flex, but just in case not,
219 # here are alternative syntaxes.
222 # $(LEX) -olex.yy.c ../common/lexer.l
225 # $(LEX) ../common/lexer.l
227 # Replace yacc with bison if you run into compilation
228 # problems with y_tab.c.
229 ../common/y_tab.c: ../common/parser.y
230 $(YACC) ../common/parser.y
231 mv y.tab.c ../common/y_tab.c
233 combobox/combobox.o: combobox/combobox.c
234 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
237 cd ../zlib; make -f makefile.unx motif
240 cd ../png; make -f makefile.unx motif
242 clean: cleanzlib cleanpng
243 rm -f $(OBJECTS) $(WXLIB)
246 cd ../zlib; make -f makefile.unx cleanmotif
249 cd ../png; make -f makefile.unx cleanmotif