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) ../common/lexer.l
205 sed -e "s/BUFSIZ/5000/g" < 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
210 # The above should work with both lex and flex, but just in case not,
211 # here are alternative syntaxes.
214 # $(LEX) -olex.yy.c ../common/lexer.l
217 # $(LEX) ../common/lexer.l
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