## Process this file with automake to produce Makefile.in
pdfdir = $(pkgdatadir)/doc/pdf
-pkgconfigdir = $(libdir)/pkgconfig
linkedman = neato.1 twopi.1 fdp.1 circo.1
linkedpdf = neato.pdf twopi.pdf fdp.pdf circo.pdf
linkedprogram = neato twopi fdp circo
AM_CPPFLAGS = \
- -I$(top_srcdir) \
-I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/gvc \
-I$(top_srcdir)/lib/pathplan \
-I$(top_srcdir)/lib/graph \
-I$(top_srcdir)/lib/cdt
-pkginclude_HEADERS = dotneato.h
-pkglib_LTLIBRARIES = libdotneato.la
-pkgconfig_DATA = libdotneato.pc
bin_PROGRAMS = dot
man_MANS = dot.1
pdf_DATA = dot.pdf
-libdotneato_la_SOURCES = dotneato.c
dot_SOURCES = dot.c
-
-if DISABLE_LTDL
-libdotneato_la_LIBADD = \
- $(top_builddir)/lib/graph/libgraph.la \
- $(top_builddir)/lib/common/libcommon.la \
- $(top_builddir)/lib/gvc/libgvc.la \
- $(top_builddir)/plugin/libplugins.la
-
-dot_LDADD = \
- $(top_builddir)/lib/graph/libgraph.la \
- $(top_builddir)/lib/common/libcommon.la \
- $(top_builddir)/lib/gvc/libgvc.la \
- $(top_builddir)/plugin/libplugins.la
-else
-libdotneato_la_LIBADD = \
- $(top_builddir)/lib/graph/libgraph.la \
- $(top_builddir)/lib/common/libcommon.la \
- $(top_builddir)/lib/gvc/libgvc.la @LIBGEN_LIBS@
-
-dot_LDADD = \
- $(top_builddir)/lib/graph/libgraph.la \
- $(top_builddir)/lib/common/libcommon.la \
- $(top_builddir)/lib/gvc/libgvc.la @LIBGEN_LIBS@
-endif
+dot_LDADD = $(top_builddir)/lib/gvc/libgvc.la
install-data-hook:
(cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; $(LN_S) dot.1 $$i; done;)
+++ /dev/null
-/* $Id$ $Revision$ */
-/* vim:set shiftwidth=4 ts=8: */
-
-/**********************************************************
-* This software is part of the graphviz package *
-* http://www.graphviz.org/ *
-* *
-* Copyright (c) 1994-2004 AT&T Corp. *
-* and is licensed under the *
-* Common Public License, Version 1.0 *
-* by AT&T Corp. *
-* *
-* Information and Software Systems Research *
-* AT&T Research, Florham Park NJ *
-**********************************************************/
-
-#include <dotneato.h>
-
-char *Info[] = {
- "libdotneato", /* Program */
- VERSION, /* Version */
- BUILDDATE /* Build Date */
-};
-
-GVC_t *gvContext(void)
-{
- GVC_t *gvc;
-
- aginit();
- agnodeattr(NULL, "label", NODENAME_ESC);
- gvc = gvNEWcontext(Info, username());
- gvconfig(gvc); /* configure for available plugins and codegens */
- return gvc;
-}
-
-int gvLayout(GVC_t *gvc, graph_t *g, char *engine)
-{
- char buf[256];
- Agsym_t *a;
- int rc;
-
- g = g->root;
- if (GD_drawing(g)) { /* only cleanup once between layouts */
- gvlayout_cleanup(gvc, g);
- GD_drawing(g) = NULL;
- }
- rc = gvlayout_select(gvc, engine);
- if (rc == NO_SUPPORT) {
- fprintf(stderr, "Layout type: \"%s\" not recognized. Use one of:%s\n",
- engine, gvplugin_list(gvc, API_layout, engine));
- return -1;
- }
-
- gvlayout_layout(gvc, g);
-
-/* set bb attribute for basic layout.
- * doesn't yet include margins, scaling or page sizes because
- * those depend on the renderer being used. */
- if (GD_drawing(g)->landscape)
- sprintf(buf, "%d %d %d %d",
- ROUND(GD_bb(g).LL.y), ROUND(GD_bb(g).LL.x),
- ROUND(GD_bb(g).UR.y), ROUND(GD_bb(g).UR.x));
- else
- sprintf(buf, "%d %d %d %d",
- ROUND(GD_bb(g).LL.x), ROUND(GD_bb(g).LL.y),
- ROUND(GD_bb(g).UR.x), ROUND(GD_bb(g).UR.y));
- if (!(a = agfindattr(g, "bb"))) {
- a = agraphattr(g, "bb", "");
- }
- agxset(g, a->index, buf);
-
- return 0;
-}
-
-int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out)
-{
- int rc;
- GVJ_t *job;
-
- g = g->root;
-
- /* create a job for the required format */
- rc = gvrender_output_langname_job(gvc, format);
- if (rc == NO_SUPPORT) {
- fprintf(stderr, "Renderer type: \"%s\" not recognized. Use one of:%s\n",
- format, gvplugin_list(gvc, API_render, format));
- return -1;
- }
-
- job = gvc->job;
- job->output_lang = gvrender_select(job, job->output_langname);
- if (!GD_drawing(g) && job->output_lang != CANONICAL_DOT) {
- fprintf(stderr, "Layout was not done\n");
- return -1;
- }
- job->output_file = out;
-
- emit_jobs(gvc, g);
- gvrender_delete_jobs(gvc);
-
- return 0;
-}
-
-
-void gvCleanup(GVC_t *gvc)
-{
- gvFREEcontext(gvc);
-}
+++ /dev/null
-/* $Id$ $Revision$ */
-/* vim:set shiftwidth=4 ts=8: */
-
-/**********************************************************
-* This software is part of the graphviz package *
-* http://www.graphviz.org/ *
-* *
-* Copyright (c) 1994-2004 AT&T Corp. *
-* and is licensed under the *
-* Common Public License, Version 1.0 *
-* by AT&T Corp. *
-* *
-* Information and Software Systems Research *
-* AT&T Research, Florham Park NJ *
-**********************************************************/
-
-#ifndef DOTNEATO_H
-#define DOTNEATO_H
-
-#include "render.h"
-#include "gvc.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern GVC_t *gvContext(void);
-extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine);
-extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out);
-extern void gvCleanup(GVC_t *gvc);
-
-#ifdef __cplusplus
-}
-#endif
-#endif
+++ /dev/null
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@/@PACKAGE@
-includedir=@includedir@/@PACKAGE@
-
-Name: libdotneato
-Description: All graph layout engines in a single library
-Version: @VERSION@
-Libs: -L${libdir} -ldotneato
-Cflags: -I${includedir}
lib/sfio/Sfio_f/Makefile
lib/vmalloc/Makefile
lib/dotgen/Makefile
- lib/dotgen/libdotgen.pc
lib/neatogen/Makefile
- lib/neatogen/libneatogen.pc
lib/fdpgen/Makefile
- lib/fdpgen/libfdpgen.pc
lib/circogen/Makefile
- lib/circogen/libcircogen.pc
lib/twopigen/Makefile
- lib/twopigen/libtwopigen.pc
lib/pack/Makefile
- lib/pack/libpack.pc
lib/expr/Makefile
lib/common/Makefile
- lib/common/libcommon.pc
lib/ingraphs/Makefile
lib/gvc/Makefile
lib/gvc/libgvc.pc
plugin/usershape/Makefile
cmd/Makefile
cmd/dot/Makefile
- cmd/dot/libdotneato.pc
cmd/tools/Makefile
cmd/gvpr/Makefile
cmd/lefty/ws/x11/libfilereq/Makefile
COMPILE=libtool --tag=CC --mode=compile ${CC} -c
LINK=libtool --tag=CC --mode=link ${CC}
-CFLAGS=`pkg-config libdotneato --cflags`
-LDFLAGS=`pkg-config libdotneato --libs`
+CFLAGS=`pkg-config libgvc --cflags`
+LDFLAGS=`pkg-config libgvc --libs`
all: dot demo simple
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include <dotneato.h>
+#include <gvc.h>
int main(int argc, char **argv)
{
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include <dotneato.h>
+#include <gvc.h>
int main(int argc, char **argv)
{
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include <dotneato.h>
+#include <gvc.h>
int main(int argc, char **argv)
{
+++ /dev/null
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@/@PACKAGE@
-includedir=@includedir@/@PACKAGE@
-
-Name: libcircogen
-Description: Circular layout library
-Version: @VERSION@
-Libs: -L${libdir} -lcircogen
-Cflags: -I${includedir}
pkginclude_HEADERS = const.h globals.h htmllex.h htmltable.h macros.h \
pointset.h render.h renderprocs.h types.h utils.h colortbl.h
-pkglib_LTLIBRARIES = libcommon.la
+noinst_LTLIBRARIES = libcommon.la
if !DISABLE_CODEGENS
CODEGENS = diagen.c figgen.c hpglgen.c gdgen.c mapgen.c mifgen.c mpgen.c \
svgusershape.c timing.c labels.c ns.c shapes.c utils.c \
output.c emit.c $(CODEGENS)
-libcommon_la_LIBADD = $(top_builddir)/lib/pathplan/libpathplan.la @GD_LIBS@ @EXPAT_LIBS@ @Z_LIBS@
-
psgen.o psgen.lo : ps.h
ps.h : ps.txt
#include "config.h"
#endif
-#include "render.h"
+#include "gvc.h"
#include "tlayout.h"
/* Default layout values, possibly set via command line; -1 indicates unset */
**********************************************************/
-#include "render.h"
#include "gvc.h"
#define sqr(a) ((double) (a) * (a))
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "colortbl.h"
#include <ctype.h>
-#include <stdarg.h>
-#include "render.h"
+#include <stdarg.h>
+#include "gvc.h"
#include "utils.h"
#ifdef HAVE_LIBZ
#include <ctype.h>
-#include "render.h"
-#include "agxbuf.h"
#include "gvc.h"
+#include "agxbuf.h"
static char *defaultlinestyle[3] = { "solid\0", "setlinewidth\0001\0", 0 };
int emitState;
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "utils.h"
#include <ctype.h>
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "utils.h"
//#ifdef HAVE_CAIRO
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "gd.h"
#include "utils.h"
#include <fcntl.h>
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "gd.h"
/* sometimes fonts are stored under a different name */
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "gd.h"
static Dict_t *ImageDict;
#define EXTERN
-#include "render.h"
+#include "gvc.h"
/* TODO:
* Use encoded form for polyline and polygon
*/
-#include "render.h"
#include <ctype.h>
+#include "gvc.h"
#define SOLID 0
#define DOTTED 1
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "htmltable.h"
#include "htmlparse.h"
#include "htmllex.h"
%{
-#include "render.h"
+#include "gvc.h"
#include "htmltable.h"
#include "htmllex.h"
* e.g., CELLGRID=n, which sets CELLBORDER=0 and has the border drawing
* handled correctly by the table.
*/
-#include "render.h"
+#include "gvc.h"
#include "htmltable.h"
#include "agxbuf.h"
#include "pointset.h"
#ifndef TABLE_H
#define TABLE_H
-#include "render.h"
#include "gvc.h"
#define FIXED_FLAG 1
#include <ctype.h>
-#include "render.h"
+#include "gvc.h"
#include "htmltable.h"
char *Gvfilepath;
**********************************************************/
-#include "render.h"
#include "gvc.h"
#include "htmltable.h"
#include <limits.h>
+++ /dev/null
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@/@PACKAGE@
-includedir=@includedir@/@PACKAGE@
-
-Name: libcommon
-Description: Various renderers and other routines common to all layout engines.
-Version: @VERSION@
-Libs: -L${libdir} -lcommon
-Cflags: -I${includedir}
#define NEWANCHORS 0
-#include "render.h"
+#include "gvc.h"
#include "htmltable.h"
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "utils.h"
/* mpgen.c 1999-Feb-23 Jim Hefferon jim@joshua.smcvt.edu
* Adapted from psgen.c. See 1st_read.mp.
*/
-#include "render.h"
+#include "gvc.h"
#ifndef MSWIN32
#include <unistd.h>
#endif
* Network Simplex Algorithm for Ranking Nodes of a DAG
*/
-#include "render.h"
+#include "gvc.h"
static int init_graph(graph_t *);
static void dfs_cutval(node_t * v, edge_t * par);
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include "render.h"
#include "gvc.h"
#include "agxbuf.h"
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#define PIC_COORDS_PER_LINE (16) /* to avoid stdio BUF overflow */
**********************************************************/
-#include "render.h"
+#include "gvc.h"
static int Rankdir;
*/
#define PDFMAX 3240 /* Maximum size of Distiller's PDF canvas */
-#include "render.h"
#include "gvc.h"
#include "ps.h"
#include "utils.h"
#include <sys/stat.h>
#include <stdio.h>
-#include "render.h"
+#include "gvc.h"
static int N_EPSF_files;
static Dict_t *EPSF_contents;
#include "globals.h"
#include "renderprocs.h"
#include "utils.h"
-#include "gvc.h"
typedef struct epsf_s {
int macro_id;
**********************************************************/
-/* #include "dot.h" */
-#include "render.h"
+#include "gvc.h"
#include "pathplan.h"
#ifdef UNUSED
/* for sincos */
#define _GNU_SOURCE 1
-#include "render.h"
#include "gvc.h"
#include "htmltable.h"
#include <limits.h>
* an edge, starting from a list of control points.
*/
-#include <render.h>
+#include "gvc.h"
static int debugleveln(edge_t* e, int i)
{
north@research.att.com
*/
-#include "render.h"
+#include "gvc.h"
#include "utils.h"
#ifdef HAVE_LIBZ
#include "zlib.h"
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include "render.h"
+#include "gvc.h"
point svg_image_size(graph_t * g, char *shapeimagefile)
{
**********************************************************/
-#include "render.h"
+#include "gvc.h"
#include "gd.h"
#include "utils.h"
#include "pathutil.h"
* AT&T Research, Florham Park NJ *
**********************************************************/
-#include "render.h"
#include "gvc.h"
#include "agxbuf.h"