1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
# $Id: Makefile.am,v 1.85 2009/07/30 22:00:39 erg Exp $ $Revision: 1.85 $
## Process this file with automake to produce Makefile.in
if WITH_CGRAPH
GRAPH = cgraph
else
GRAPH = graph
endif
pdfdir = $(pkgdatadir)/doc/pdf
linkedman = neato.1 twopi.1 fdp.1 circo.1
linkedpdf = neato.1.pdf twopi.1.pdf fdp.1.pdf circo.1.pdf
linkedprogram = neato$(EXEEXT) twopi$(EXEEXT) fdp$(EXEEXT) circo$(EXEEXT) \
osage$(EXREEXT)
if WITH_SFDP
linkedman += sfdp.1
linkedpdf += sfdp.1.pdf
linkedprogram += sfdp$(EXEEXT)
endif
AM_CPPFLAGS = \
-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
if ENABLE_SHARED
if ENABLE_LTDL
if ENABLE_STATIC
bin_PROGRAMS = dot dot_static
else
noinst_PROGRAMS = dot_builtins
bin_PROGRAMS = dot
endif
else
if ENABLE_STATIC
noinst_PROGRAMS = dot_builtins
bin_PROGRAMS = dot_static
else
noinst_PROGRAMS = dot_builtins
endif
endif
else
if ENABLE_STATIC
bin_PROGRAMS = dot_static
endif
endif
man_MANS = dot.1 osage.1
pdf_DATA = dot.1.pdf osage.1.pdf
dot_SOURCES = dot.c no_builtins.c
dot_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1
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;)
(cd $(DESTDIR)$(pdfdir); for i in $(linkedpdf); do rm -f $$i; $(LN_S) dot.1.pdf $$i; done;)
# create "neato", "fdp" etc as soflinks to "dot"
# run "dot -c", if possible, to create plugin config
install-exec-hook:
(cd $(DESTDIR)$(bindir); if test -x dot$(EXEEXT); then for i in $(linkedprogram); do rm -f $$i; $(LN_S) dot$(EXEEXT) $$i; done; fi;)
if test "x$(DESTDIR)" = "x"; then if test -x $(bindir)/dot$(EXEEXT); then if test -x /sbin/ldconfig; then /sbin/ldconfig 2>/dev/null; fi; $(bindir)/dot$(EXEEXT) -c; else $(bindir)/dot_static$(EXEEXT) -c; fi; fi
uninstall-hook:
(cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; done;)
(cd $(DESTDIR)$(pdfdir); for i in $(linkedpdf); do rm -f $$i; done;)
(cd $(DESTDIR)$(bindir); for i in $(linkedprogram); do rm -f $$i; done;)
(cd $(DESTDIR)$(libdir); rm -f config;)
dot.1.pdf: $(srcdir)/dot.1
- $(GROFF) -Tps -man $(srcdir)/dot.1 | $(PS2PDF) - - >dot.1.pdf
osage.1.pdf: $(srcdir)/osage.1
- $(GROFF) -Tps -man $(srcdir)/osage.1 | $(PS2PDF) - - >osage.1.pdf
dot_static_SOURCES = dot.c dot_builtins.c
dot_static_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=0
dot_static_LDADD = \
$(top_builddir)/plugin/dot_layout/libgvplugin_dot_layout_C.la \
$(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout_C.la \
$(top_builddir)/plugin/core/libgvplugin_core_C.la \
$(top_builddir)/lib/gvc/libgvc_C.la \
$(top_builddir)/lib/pathplan/libpathplan_C.la \
$(top_builddir)/lib/$(GRAPH)/lib$(GRAPH)_C.la \
$(top_builddir)/lib/xdot/libxdot_C.la \
$(top_builddir)/lib/cdt/libcdt_C.la \
$(GTS_LIBS) $(ICONV_LIBS) $(EXPAT_LIBS) $(Z_LIBS) $(LIBGEN_LIBS) $(SOCKET_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS)
dot_builtins_SOURCES = dot.c dot_builtins.c
dot_builtins_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1
dot_builtins_LDADD = \
$(top_builddir)/plugin/dot_layout/libgvplugin_dot_layout.la \
$(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout.la \
$(top_builddir)/plugin/core/libgvplugin_core.la \
$(top_builddir)/lib/gvc/libgvc.la \
$(top_builddir)/lib/pathplan/libpathplan.la \
$(top_builddir)/lib/$(GRAPH)/lib$(GRAPH).la \
$(top_builddir)/lib/xdot/libxdot.la \
$(top_builddir)/lib/cdt/libcdt.la \
$(GTS_LIBS) $(ICONV_LIBS) $(EXPAT_LIBS) $(Z_LIBS) $(LIBGEN_LIBS) $(SOCKET_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS)
if WITH_LIBGD
if WITH_MYLIBGD
dot_static_LDADD += $(top_builddir)/plugin/gd/.libs/libgvplugin_gd_C.a $(top_builddir)/lib/gd/libgvgd_C.la $(FONTCONFIG_LIBS) $(FREETYPE2_LIBS) $(JPEG_LIBS) $(PNG_LIBS) $(Z_LIBS)
dot_builtins_LDADD += $(top_builddir)/plugin/gd/libgvplugin_gd.la $(top_builddir)/lib/gd/libgvgd_C.la $(FONTCONFIG_LIBS) $(FREETYPE2_LIBS) $(JPEG_LIBS) $(PNG_LIBS) $(Z_LIBS)
else
dot_static_LDADD += $(top_builddir)/plugin/gd/.libs/libgvplugin_gd_C.a $(GD_LIBS) $(FONTCONFIG_LIBS) $(FREETYPE2_LIBS) $(JPEG_LIBS) $(PNG_LIBS) $(Z_LIBS)
dot_builtins_LDADD += $(top_builddir)/plugin/gd/libgvplugin_gd.la $(GD_LIBS) $(FONTCONFIG_LIBS) $(FREETYPE2_LIBS) $(JPEG_LIBS) $(PNG_LIBS) $(Z_LIBS)
endif
endif
if WITH_PANGOCAIRO
dot_static_LDADD += $(top_builddir)/plugin/pango/.libs/libgvplugin_pango_C.a $(PANGOCAIRO_LIBS)
dot_builtins_LDADD += $(top_builddir)/plugin/pango/libgvplugin_pango.la $(PANGOCAIRO_LIBS)
endif
EXTRA_DIST = Makefile.old dot.1 dot.1.pdf osage.1 osage.1.pdf dot.vcproj
DISTCLEANFILES = dot.1.pdf osage.1.pdf
|