1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
# $Id: Makefile.am,v 1.15 2010/01/06 18:12:47 ellson Exp $ $Revision: 1.15 $
## Process this file with automake to produce Makefile.in
CGRAPH_VERSION="5:0:0"
pdfdir = $(pkgdatadir)/doc/pdf
pkgconfigdir = $(libdir)/pkgconfig
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/lib/cdt
pkginclude_HEADERS = cgraph.h
noinst_HEADERS = agxbuf.h cghdr.h malloc.h vmstub.h
noinst_LTLIBRARIES = libcgraph_C.la
lib_LTLIBRARIES = libcgraph.la
pkgconfig_DATA = libcgraph.pc
man_MANS = cgraph.3
pdf_DATA = cgraph.3.pdf
libcgraph_C_la_SOURCES = agerror.c agxbuf.c apply.c attr.c edge.c \
flatten.c graph.c grammar.y id.c imap.c io.c mem.c node.c \
obj.c pend.c rec.c refstr.c scan.l subg.c utils.c write.c
libcgraph_la_LDFLAGS = -version-info $(CGRAPH_VERSION) -no-undefined
libcgraph_la_SOURCES = $(libcgraph_C_la_SOURCES)
libcgraph_la_LIBADD = $(top_builddir)/lib/cdt/libcdt.la
scan.o scan.lo: scan.c grammar.h
scan.c: $(top_srcdir)/lib/cgraph/scan.l
@LEX@ -i $(top_srcdir)/lib/cgraph/scan.l
@SED@ "s/yy/aag/g" < @LEX_OUTPUT_ROOT@.c > scan.c
rm @LEX_OUTPUT_ROOT@.c
grammar.c: y.tab.c
@SED@ "s/yy/aag/g" < y.tab.c > grammar.c
grammar.h: y.tab.h
@SED@ "s/yy/aag/g" < y.tab.h > grammar.h
y.tab.c y.tab.h: y.output
y.output: $(top_srcdir)/lib/cgraph/grammar.y
@YACC@ -dv $(top_srcdir)/lib/cgraph/grammar.y
cgraph.3.pdf: $(srcdir)/cgraph.3
- @GROFF@ -Tps -man $(srcdir)/cgraph.3 | @PS2PDF@ - - >cgraph.3.pdf
EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old cmpnd.c \
main.c tester.c grammar.c grammar.h scan.c \
y.tab.c y.tab.h y.output cgraph.vcproj cgraph.def
DISTCLEANFILES = $(pdf_DATA) grammar.[ch] scan.c y.output y.tab.[ch]
|