3 top_srcdir = @top_srcdir@/..
4 top_builddir = ../../..
5 libsrc_dir = contrib/src/deprecated
7 TARGET_LIBNAME=lib@WX_LIBRARY_BASENAME@_wxdeprecated-@WX_RELEASE@
9 LIBVERSION_CURRENT=@WX_CURRENT@
10 LIBVERSION_REVISION=@WX_REVISION@
11 LIBVERSION_AGE=@WX_AGE@
13 HEADER_PATH=$(top_srcdir)/contrib/include/wx
14 HEADER_SUBDIR=deprecated
16 HEADERS=prop.h propform.h proplist.h resource.h treelay.h wxexpr.h treelay.h
18 OBJECTS=prop.o propform.o proplist.o wxexpr.o parser.o resource.o treelay.o
19 DEPFILES=$(OBJECTS:.o=.d)
21 APPEXTRADEFS=-I$(top_srcdir)/contrib/include
23 include $(top_builddir)/src/makelib.env
30 GENDIR = $(WXDIR)/src/generic
31 COMMDIR = $(WXDIR)/src/common
33 parser.o: parser.c lexer.c
34 $(CCLEX) -c $(CFLAGS) -I. $(PICFLAGS) -o $@ parser.c
36 parser.c: $(COMMDIR)/parser.y lexer.c
37 $(YACC) $(COMMDIR)/parser.y
38 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
39 sed -e "s/BUFSIZ/5000/g" | \
40 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
41 sed -e "s/yy/PROIO_yy/g" | \
42 sed -e "s/input/PROIO_input/g" | \
43 sed -e "s/unput/PROIO_unput/g" > parser.c
46 lexer.c: $(COMMDIR)/lexer.l
47 $(LEX) $(COMMDIR)/lexer.l
48 @sed -e "s;$(COMMDIR)/@LEX_STEM@.c;lexer.l;g" < @LEX_STEM@.c | \
49 sed -e "s/yy/PROIO_yy/g" | \
50 sed -e "s/input/PROIO_input/g" | \
51 sed -e "s/unput/PROIO_unput/g" > lexer.c