1
## Process this file with automake to produce Makefile.in
9
CFLAGS = @CFLAGS@ @STRTOLL@ @STRTOULL@
11
noinst_HEADERS = exgram.h exlib.h expr.h
13
noinst_LTLIBRARIES = libexpr.la
16
libexpr_la_SOURCES = excc.c excontext.c exdata.c exerror.c exeval.c \
17
exexpr.c exlexname.c exopen.c exrewind.c extoken.c extype.c \
18
exzero.c exparse.y exgram.h exlib.h expr.h
21
-I$(top_srcdir)/tools/vmalloc \
22
-I$(top_srcdir)/tools/sfio \
23
-I$(top_srcdir)/tools/ast \
26
excc.o excc.lo: exparse.h
28
exparse.o exparse.lo: exparse.c exgram.h
30
exeval.o exeval.lo exlexname.o exlexname.lo: exop.h
32
exparse.c exparse.h: exparse.y
33
$(YACC) -dtv exparse.y
34
$(SED) "s/yy/ex/g" < y.tab.c | $(SED) "s/YY/EX/g" > tmp
35
$(SED) "s/fprintf(/sfprintf(sfstderr,/g" < tmp > exparse.c
36
echo "#ifndef _EXPARSE_H" > exparse.h
37
echo "#define _EXPARSE_H" >> exparse.h
38
$(SED) "s/yy/ex/g" < y.tab.h | $(SED) "s/YY/EX/g" >> exparse.h
39
echo "#endif /* _EXPARSE_H */" >> exparse.h
40
rm -f tmp y.tab.c y.tab.h
43
echo "static const char* exop[] = {" > exop.h
44
$(SED) -e '/^[ ]*#[ ]*define[ ][ ]*[A-Z]/!d' -e 's/^[ ]*#[ ]*define[ ]*\([A-Z0-9_]*\).*/ "\1",/' < exparse.h >> exop.h
47
CLEANFILES = y.output exparse.[ch]
49
EXTRA_DIST = $(man_MANS) RELEASE Makefile.nmake Makefile.orig Makefile.IN