# $Id: Makefile.am,v 1.36 2010/11/04 16:43:47 ellson Exp $ $Revision: 1.36 $
## Process this file with automake to produce Makefile.in

pdfdir = $(pkgdatadir)/doc/pdf
#pkgconfigdir = $(libdir)/pkgconfig

if WITH_CGRAPH
GRAPH = cgraph
else
GRAPH = graph
endif

AM_CPPFLAGS = -I$(top_srcdir) \
        -I$(top_srcdir)/lib/common \
	-I$(top_srcdir)/lib/gvc \
	-I$(top_srcdir)/lib/neatogen \
	-I$(top_srcdir)/lib/pathplan \
	-I$(top_srcdir)/lib/$(GRAPH) \
	-I$(top_srcdir)/lib/cdt

if WITH_WIN32
AM_CFLAGS = -D_BLD_gvc=1
endif

pkginclude_HEADERS = pack.h
noinst_LTLIBRARIES = libpack_C.la
man_MANS = pack.3
pdf_DATA = pack.3.pdf
#pkgconfig_DATA = libpack.pc

libpack_C_la_SOURCES = ccomps.c pack.c

pack.3.pdf: $(srcdir)/pack.3
	- @GROFF@ -Tps -man $(srcdir)/pack.3 | @PS2PDF@ - - >pack.3.pdf

EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old ptest.c

DISTCLEANFILES = $(pdf_DATA)

