~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to tools/expr/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
 
 
3
AUTOMAKE_OPTIONS = 1.4
 
4
 
 
5
LIBS=
 
6
 
 
7
YFLAGS = -dv
 
8
 
 
9
CFLAGS = @CFLAGS@ @STRTOLL@ @STRTOULL@
 
10
 
 
11
noinst_HEADERS = exgram.h exlib.h expr.h
 
12
 
 
13
noinst_LTLIBRARIES = libexpr.la
 
14
man_MANS = expr.3
 
15
 
 
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
 
19
 
 
20
INCLUDES = \
 
21
        -I$(top_srcdir)/tools/vmalloc \
 
22
        -I$(top_srcdir)/tools/sfio \
 
23
        -I$(top_srcdir)/tools/ast \
 
24
        -I$(top_srcdir)/cdt
 
25
 
 
26
excc.o excc.lo: exparse.h
 
27
 
 
28
exparse.o exparse.lo: exparse.c exgram.h
 
29
 
 
30
exeval.o exeval.lo exlexname.o exlexname.lo: exop.h
 
31
 
 
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
 
41
 
 
42
exop.h: exparse.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
 
45
        echo "};" >> exop.h
 
46
 
 
47
CLEANFILES = y.output exparse.[ch]
 
48
 
 
49
EXTRA_DIST = $(man_MANS) RELEASE Makefile.nmake Makefile.orig Makefile.IN