Debian Codegraph @

lib/cgraph/Makefile.am

raw
1 ## Process this file with automake to produce Makefile.in
2
3 CGRAPH_VERSION = "8:5:0"
4
5 AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/lib/cdt
6
7 if WITH_WIN32
8 AM_CFLAGS = -DEXPORT_CGRAPH -DEXPORT_CGHDR
9 endif
10
11 pkginclude_HEADERS = cgraph.h
12 noinst_HEADERS = agstrcanon.h cghdr.h ingraphs.h node_set.h rdr.h
13 noinst_LTLIBRARIES = libcgraph_C.la
14 lib_LTLIBRARIES = libcgraph.la
15 pkgconfig_DATA = libcgraph.pc
16 dist_man_MANS = cgraph.3
17 if ENABLE_MAN_PDFS
18 pdf_DATA = cgraph.3.pdf
19 endif
20
21 libcgraph_C_la_SOURCES = acyclic.c agerror.c apply.c attr.c edge.c \
22 graph.c grammar.y id.c imap.c ingraphs.c io.c node.c node_induce.c \
23 obj.c rec.c refstr.c scan.l subg.c tred.c unflatten.c utils.c write.c
24
25 libcgraph_la_LDFLAGS = -version-info $(CGRAPH_VERSION) -no-undefined
26 libcgraph_la_SOURCES = $(libcgraph_C_la_SOURCES)
27 libcgraph_la_LIBADD = \
28 $(top_builddir)/lib/cdt/libcdt.la \
29 $(top_builddir)/lib/util/libutil_C.la
30
31 scan.$(OBJEXT) scan.lo: scan.c grammar.h
32
33 scan.c: $(top_srcdir)/lib/cgraph/scan.l
34 $(LEX) --case-insensitive --outfile=$@ $(top_srcdir)/lib/cgraph/scan.l
35
36 grammar.c grammar.h: $(top_srcdir)/lib/cgraph/grammar.y
37 $(YACC) -Wno-yacc -dv --output=grammar.c $(top_srcdir)/lib/cgraph/grammar.y
38
39 .3.3.pdf:
40 rm -f $@; pdffile=$@; psfile=$${pdffile%pdf}ps; \
41 $(GROFF) -Tps -man $< > $$psfile || { rm -f $$psfile; exit 1; }; \
42 $(PS2PDF) $$psfile && rm -f $$psfile || { rm -f $$psfile; exit 1; }
43 SUFFIXES = .3 .3.pdf
44
45 EXTRA_DIST = \
46 grammar.c grammar.h scan.c
47
48 DISTCLEANFILES = grammar.[ch] scan.c $(pdf_DATA)