]>
Commit | Line | Data |
---|---|---|
4a3bdee6 JS |
1 | # $Id$ |
2 | ||
3 | top_srcdir = @top_srcdir@/.. | |
4 | top_builddir = ../../.. | |
5 | libsrc_dir = contrib/src/deprecated | |
6 | ||
7c9955d1 | 7 | TARGET_LIBNAME=lib@WX_LIBRARY_BASENAME@_wxdeprecated-@WX_RELEASE@ |
4a3bdee6 JS |
8 | |
9 | LIBVERSION_CURRENT=@WX_CURRENT@ | |
10 | LIBVERSION_REVISION=@WX_REVISION@ | |
11 | LIBVERSION_AGE=@WX_AGE@ | |
12 | ||
4a3bdee6 JS |
13 | HEADER_PATH=$(top_srcdir)/contrib/include/wx |
14 | HEADER_SUBDIR=deprecated | |
15 | ||
16 | HEADERS=prop.h propform.h proplist.h resource.h treelay.h wxexpr.h treelay.h | |
17 | ||
7c9955d1 | 18 | OBJECTS=prop.o propform.o proplist.o wxexpr.o parser.o resource.o treelay.o |
4a3bdee6 JS |
19 | DEPFILES=$(OBJECTS:.o=.d) |
20 | ||
21 | APPEXTRADEFS=-I$(top_srcdir)/contrib/include | |
22 | ||
23 | include $(top_builddir)/src/makelib.env | |
24 | ||
25 | -include $(DEPFILES) | |
f2638c97 JS |
26 | |
27 | WXDIR = $(top_srcdir) | |
28 | ||
29 | SRCDIR = $(WXDIR)/src | |
30 | GENDIR = $(WXDIR)/src/generic | |
31 | COMMDIR = $(WXDIR)/src/common | |
32 | ||
33 | parser.o: parser.c lexer.c | |
34 | $(CCLEX) -c $(CFLAGS) -I. $(PICFLAGS) -o $@ parser.c | |
35 | ||
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 | |
44 | @$(RM) y.tab.c | |
45 | ||
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 | |
52 | @$(RM) @LEX_STEM@.c | |
53 |