]> granicus.if.org Git - graphviz/commitdiff
add GNU Makefiles for lib/cgraph
authorellson <devnull@localhost>
Mon, 29 Oct 2007 14:40:27 +0000 (14:40 +0000)
committerellson <devnull@localhost>
Mon, 29 Oct 2007 14:40:27 +0000 (14:40 +0000)
lib/cgraph/Makefile.am [new file with mode: 0644]
lib/cgraph/Makefile.old [moved from lib/cgraph/Makefile with 100% similarity]

diff --git a/lib/cgraph/Makefile.am b/lib/cgraph/Makefile.am
new file mode 100644 (file)
index 0000000..660e09f
--- /dev/null
@@ -0,0 +1,50 @@
+# $Id$ $Revision$ 
+## Process this file with automake to produce Makefile.in
+
+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 bla.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.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 main.c mem.c node.c \
+       pend.c rec.c refstr.c scan.l subg.c utils.c write.c
+
+libcgraph_la_LDFLAGS = -version-info @VERSION_INFO@ -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
+
+y.output: $(top_srcdir)/lib/cgraph/grammar.y
+       @YACC@ -dv $(top_srcdir)/lib/cgraph/grammar.y
+
+grammar.c: y.output
+       @SED@ "s/yy/aag/g" < y.tab.c > grammar.c
+
+grammar.h: y.output
+       @SED@ "s/yy/aag/g" < y.tab.h > grammar.h
+
+.3.pdf:
+       -groff -Tps -man $< | ps2pdf - - >$@
+
+EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old cmpnd.c \
+       main.c tester.c README grammar.c grammar.h scan.c \
+       y.tab.c y.tab.h y.output
+
+DISTCLEANFILES = $(pdf_DATA) grammar.[ch] scan.c y.output y.tab.[ch]
similarity index 100%
rename from lib/cgraph/Makefile
rename to lib/cgraph/Makefile.old