use_cgraph="No"
else
use_cgraph="Yes"
- AC_DEFINE_UNQUOTED(USE_CGRAPH,1,[Define if you want CGRAPH])
+ AC_DEFINE_UNQUOTED(WITH_CGRAPH,1,[Define if you want CGRAPH])
fi
AM_CONDITIONAL(WITH_CGRAPH, [test "x$use_cgraph" = "xYes"])
lib/sfio/Sfio_f/Makefile
lib/vmalloc/Makefile
lib/dotgen/Makefile
+ lib/dotgen_cgraph/Makefile
lib/neatogen/Makefile
+ lib/neatogen_cgraph/Makefile
lib/fdpgen/Makefile
+ lib/fdpgen_cgraph/Makefile
lib/sparse/Makefile
lib/sfdpgen/Makefile
lib/circogen/Makefile
+ lib/circogen_cgraph/Makefile
lib/twopigen/Makefile
+ lib/twopigen_cgraph/Makefile
lib/patchwork/Makefile
lib/pack/Makefile
lib/expr/Makefile
lib/expr/libexpr.pc
lib/common/Makefile
+ lib/common_cgraph/Makefile
lib/ingraphs/Makefile
lib/vpsc/Makefile
lib/gvc/Makefile
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
-SUBDIRS = cdt graph gd pathplan sfio vmalloc ast vpsc rbtree \
- circogen dotgen fdpgen neatogen twopigen sparse sfdpgen \
- patchwork inkpot common pack gvc ingraphs expr cgraph \
- xdot topfish glcomp
+GRAPH_DIRS = circogen common dotgen fdpgen neatogen twopigen
+
+CGRAPH_DIRS = circogen_cgraph common_cgraph dotgen_cgraph \
+ fdpgen_cgraph neatogen_cgraph twopigen_cgraph
+
+SUBDIRS = cdt graph cgraph gd pathplan sfio vmalloc ast vpsc \
+ rbtree sparse sfdpgen patchwork inkpot expr gvc xdot \
+ pack ingraphs topfish glcomp $(GRAPH_DIRS) $(CGRAPH_DIRS)
EXTRA_DIST = Makefile.old
-I$(top_srcdir)/lib/graph \
-I$(top_srcdir)/lib/cdt
+if WITH_CGRAPH
+else
noinst_HEADERS = block.h blockpath.h blocktree.h circo.h \
circpos.h circular.h deglist.h edgelist.h nodelist.h \
nodeset.h stack.h
noinst_LTLIBRARIES = libcircogen_C.la
+endif
libcircogen_C_la_SOURCES = circularinit.c nodelist.c block.c edgelist.c \
stack.c circular.c deglist.c blocktree.c blockpath.c \
-I$(top_srcdir)/lib/cdt \
-I$(top_srcdir)/lib/pathplan
+if WITH_CGRAPH
+else
noinst_HEADERS = dot.h dotprocs.h
noinst_LTLIBRARIES = libdotgen_C.la
+endif
libdotgen_C_la_LDFLAGS = -no-undefined
libdotgen_C_la_SOURCES = acyclic.c class1.c class2.c cluster.c compound.c \
-I$(top_srcdir)/lib/graph \
-I$(top_srcdir)/lib/cdt
+if WITH_CGRAPH
+else
noinst_HEADERS = comp.h dbg.h fdp.h grid.h tlayout.h xlayout.h \
clusteredges.h
noinst_LTLIBRARIES = libfdpgen_C.la
+endif
libfdpgen_C_la_SOURCES = comp.c dbg.c grid.c fdpinit.c layout.c \
tlayout.c xlayout.c clusteredges.c
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
+if WITH_CGRAPH
+GRAPH = cgraph
+COMMON = common_cgraph
+else
+GRAPH = graph
+COMMON = common
+endif
+
pdfdir = $(pkgdatadir)/doc/pdf
pkgconfigdir = $(libdir)/pkgconfig
AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/common \
+ -I$(top_srcdir)/lib/$(COMMON) \
-I$(top_srcdir)/lib/pathplan \
- -I$(top_srcdir)/lib/graph \
+ -I$(top_srcdir)/lib/$(GRAPH) \
-I$(top_srcdir)/lib/cdt \
$(INCLTDL) -I$(top_srcdir)/libltdl \
-DGVLIBDIR=\"$(pkglibdir)\" -DGVPLUGIN_CONFIG_FILE=\"$(GVPLUGIN_CONFIG_FILE)\"
libgvc_C_la_SOURCES = gvrender.c gvlayout.c gvdevice.c gvloadimage.c \
gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c \
gvtextlayout.c gvusershape.c gvc.c
-libgvc_C_la_LIBADD = $(top_builddir)/lib/common/libcommon_C.la \
+libgvc_C_la_LIBADD = $(top_builddir)/lib/$(COMMON)/libcommon_C.la \
$(top_builddir)/lib/pack/libpack_C.la
libgvc_C_la_DEPENDENCIES = $(top_builddir)/lib/rbtree/librbtree_C.la \
$(top_builddir)/lib/pack/libpack_C.la
libgvc_la_SOURCES = $(libgvc_C_la_SOURCES) no_builtins.c demand_loading.c
libgvc_la_LIBADD = $(libgvc_C_la_LIBADD) \
$(top_builddir)/lib/cdt/libcdt.la \
- $(top_builddir)/lib/graph/libgraph.la \
+ $(top_builddir)/lib/$(GRAPH)/lib$(GRAPH).la \
$(top_builddir)/lib/pathplan/libpathplan.la \
@GTS_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @MATH_LIBS@
libgvc_la_DEPENDENCIES = $(libgvc_C_la_DEPENDENCIES)
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
+if WITH_CGRAPH
+GRAPH = cgraph
+else
+GRAPH = graph
+endif
+
AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/graph \
+ -I$(top_srcdir)/lib/$(GRAPH) \
-I$(top_srcdir)/lib/cdt
noinst_HEADERS = ingraphs.h
-I$(top_srcdir)/lib/pathplan \
-I$(top_srcdir)/lib/graph \
-I$(top_srcdir)/lib/sfdpgen \
- -I$(top_srcdir)/lib/cdt @IPSEPCOLA_INCLUDES@ $(GTS_CFLAGS)
+ -I$(top_srcdir)/lib/cdt $(IPSEPCOLA_INCLUDES) $(GTS_CFLAGS)
+if WITH_CGRAPH
+else
noinst_LTLIBRARIES = libneatogen_C.la
noinst_HEADERS = adjust.h edges.h geometry.h heap.h hedges.h info.h mem.h \
bfs.h closest.h conjgrad.h defs.h dijkstra.h embed_graph.h kkutils.h \
matrix_ops.h pca.h stress.h quad_prog_solver.h digcola.h \
quad_prog_vpsc.h delaunay.h sparsegraph.h multispline.h fPQ.h
+endif
IPSEPCOLA_SOURCES = constrained_majorization_ipsep.c \
mosek_quad_solve.c mosek_quad_solve.h quad_prog_vpsc.c
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/$(GRAPH) \
-I$(top_srcdir)/lib/cdt
if WITH_WIN32
-I$(top_srcdir)/lib/graph \
-I$(top_srcdir)/lib/cdt
+if WITH_CGRAPH
+else
noinst_HEADERS = circle.h
noinst_LTLIBRARIES = libtwopigen_C.la
+endif
libtwopigen_C_la_SOURCES = twopiinit.c circle.c
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
+if WITH_CGRAPH
+GRAPH = cgraph
+COMMON = common_cgraph
+else
+GRAPH = graph
+COMMON = common
+endif
+
AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/common \
+ -I$(top_srcdir)/lib/$(COMMON) \
-I$(top_srcdir)/lib/pathplan \
-I$(top_srcdir)/lib/gvc \
- -I$(top_srcdir)/lib/graph \
+ -I$(top_srcdir)/lib/$(GRAPH) \
-I$(top_srcdir)/lib/cdt \
$(LIBGVC_CFLAGS)
libgvplugin_dot_layout_C_la_LIBADD = \
$(top_builddir)/lib/dotgen/libdotgen_C.la
-libgvplugin_dot_layout_la_LDFLAGS = -version-info @GVPLUGIN_VERSION_INFO@
+libgvplugin_dot_layout_la_LDFLAGS = -version-info $(GVPLUGIN_VERSION_INFO)
libgvplugin_dot_layout_la_SOURCES = $(libgvplugin_dot_layout_C_la_SOURCES)
libgvplugin_dot_layout_la_LIBADD = $(libgvplugin_dot_layout_C_la_LIBADD) \
$(top_builddir)/lib/gvc/libgvc.la \
- $(top_builddir)/lib/graph/libgraph.la \
+ $(top_builddir)/lib/$(GRAPH)/lib$(GRAPH).la \
$(top_builddir)/lib/cdt/libcdt.la \
- $(top_builddir)/lib/pathplan/libpathplan.la @MATH_LIBS@
+ $(top_builddir)/lib/pathplan/libpathplan.la $(MATH_LIBS)
if WITH_WIN32
libgvplugin_dot_layout_la_LDFLAGS += -no-undefined
-libgvplugin_dot_layout_la_LIBADD += $(top_builddir)/lib/graph/libgraph.la
+libgvplugin_dot_layout_la_LIBADD += $(top_builddir)/lib/$(GRAPH)/lib$(GRAPH).la
endif
if WITH_DARWIN9
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
+if WITH_CGRAPH
+GRAPH = cgraph
+COMMON = common_cgraph
+else
+GRAPH = graph
+COMMON = common
+endif
+
AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/common \
+ -I$(top_srcdir)/lib/$(COMMON) \
-I$(top_srcdir)/lib/pathplan \
-I$(top_srcdir)/lib/gvc \
- -I$(top_srcdir)/lib/graph \
+ -I$(top_srcdir)/lib/$(GRAPH) \
-I$(top_srcdir)/lib/cdt \
$(LIBGVC_CFLAGS)
libgvplugin_neato_layout_la_SOURCES = $(libgvplugin_neato_layout_C_la_SOURCES)
libgvplugin_neato_layout_la_LIBADD = $(libgvplugin_neato_layout_C_la_LIBADD) \
$(top_builddir)/lib/gvc/libgvc.la \
- $(top_builddir)/lib/graph/libgraph.la \
+ $(top_builddir)/lib/$(GRAPH)/lib$(GRAPH).la \
$(top_builddir)/lib/cdt/libcdt.la \
$(top_builddir)/lib/pathplan/libpathplan.la \
$(GTS_LIBS) @IPSEPCOLA_LIBS@ @MATH_LIBS@
if WITH_WIN32
libgvplugin_neato_layout_la_LDFLAGS += -no-undefined
-libgvplugin_neato_layout_la_LIBADD += $(top_builddir)/lib/graph/libgraph.la $(top_builddir)/lib/cdt/libcdt.la
+libgvplugin_neato_layout_la_LIBADD += $(top_builddir)/lib/$(GRAPH)/lib$(GRAPH).la $(top_builddir)/lib/cdt/libcdt.la
endif
if WITH_DARWIN9