| 1 |
## Process this file with automake to produce Makefile.in |
| 2 |
|
| 3 |
linkedman = neato.1 twopi.1 fdp.1 circo.1 |
| 4 |
if ENABLE_MAN_PDFS |
| 5 |
linkedpdf = neato.1.pdf twopi.1.pdf fdp.1.pdf circo.1.pdf |
| 6 |
else |
| 7 |
linkedpdf = |
| 8 |
endif |
| 9 |
linkedprogram = neato$(EXEEXT) twopi$(EXEEXT) fdp$(EXEEXT) circo$(EXEEXT) \ |
| 10 |
osage$(EXEEXT) patchwork$(EXEEXT) |
| 11 |
|
| 12 |
if WITH_SFDP |
| 13 |
linkedman += sfdp.1 |
| 14 |
if ENABLE_MAN_PDFS |
| 15 |
linkedpdf += sfdp.1.pdf |
| 16 |
endif |
| 17 |
linkedprogram += sfdp$(EXEEXT) |
| 18 |
endif |
| 19 |
|
| 20 |
AM_CPPFLAGS = \ |
| 21 |
-I$(top_srcdir)/lib \ |
| 22 |
-I$(top_srcdir)/lib/common \ |
| 23 |
-I$(top_srcdir)/lib/gvc \ |
| 24 |
-I$(top_srcdir)/lib/pathplan \ |
| 25 |
-I$(top_srcdir)/lib/cgraph \ |
| 26 |
-I$(top_srcdir)/lib/cdt |
| 27 |
|
| 28 |
if ENABLE_SHARED |
| 29 |
if ENABLE_LTDL |
| 30 |
if ENABLE_STATIC |
| 31 |
bin_PROGRAMS = dot dot_static |
| 32 |
else |
| 33 |
bin_PROGRAMS = dot dot_builtins |
| 34 |
endif |
| 35 |
dist_bin_SCRIPTS = dot_sandbox |
| 36 |
else |
| 37 |
if ENABLE_STATIC |
| 38 |
bin_PROGRAMS = dot_static dot_builtins |
| 39 |
else |
| 40 |
bin_PROGRAMS = dot_builtins |
| 41 |
endif |
| 42 |
endif |
| 43 |
else |
| 44 |
if ENABLE_STATIC |
| 45 |
bin_PROGRAMS = dot_static |
| 46 |
endif |
| 47 |
endif |
| 48 |
|
| 49 |
dist_man_MANS = dot.1 dot_sandbox.1 osage.1 patchwork.1 |
| 50 |
if ENABLE_MAN_PDFS |
| 51 |
pdf_DATA = dot.1.pdf osage.1.pdf patchwork.1.pdf |
| 52 |
endif |
| 53 |
|
| 54 |
dot_SOURCES = dot.c no_builtins.c |
| 55 |
dot_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1 |
| 56 |
dot_LDADD = \ |
| 57 |
$(top_builddir)/lib/gvc/libgvc.la \ |
| 58 |
$(top_builddir)/lib/cgraph/libcgraph.la |
| 59 |
|
| 60 |
install-data-hook: |
| 61 |
(cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; $(LN_S) dot.1 $$i; done;) |
| 62 |
(cd $(DESTDIR)$(pdfdir); for i in $(linkedpdf); do rm -f $$i; $(LN_S) dot.1.pdf $$i; done;) |
| 63 |
|
| 64 |
# create "neato", "fdp" etc as soflinks to "dot" |
| 65 |
# run "dot -c", if possible, to create plugin config |
| 66 |
install-exec-hook: |
| 67 |
(cd $(DESTDIR)$(bindir); if test -x dot$(EXEEXT); then for i in $(linkedprogram); do rm -f $$i; $(LN_S) dot$(EXEEXT) $$i; done; fi;) |
| 68 |
if test "x$(DESTDIR)" = "x" -a "x$(build)" = "x$(host)"; then if test -x $(bindir)/dot$(EXEEXT); then if test -x /sbin/ldconfig; then /sbin/ldconfig 2>/dev/null; fi; cd $(bindir); ./dot$(EXEEXT) -c; else cd $(bindir); ./dot_static$(EXEEXT) -c; fi; fi |
| 69 |
|
| 70 |
uninstall-hook: |
| 71 |
(cd $(DESTDIR)$(man1dir); rm -f $(linkedman);) |
| 72 |
(cd $(DESTDIR)$(pdfdir); for i in $(linkedpdf); do rm -f $$i; done;) |
| 73 |
(cd $(DESTDIR)$(bindir); rm -f $(linkedprogram);) |
| 74 |
(cd $(DESTDIR)$(libdir); rm -f config;) |
| 75 |
|
| 76 |
.1.1.pdf: |
| 77 |
rm -f $@; pdffile=$@; psfile=$${pdffile%pdf}ps; \ |
| 78 |
$(GROFF) -Tps -man $< > $$psfile || { rm -f $$psfile; exit 1; }; \ |
| 79 |
$(PS2PDF) $$psfile && rm -f $$psfile || { rm -f $$psfile; exit 1; } |
| 80 |
SUFFIXES = .1 .1.pdf |
| 81 |
|
| 82 |
dot_static_SOURCES = dot.c dot_builtins.cpp |
| 83 |
dot_static_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=0 |
| 84 |
dot_static_LDADD = \ |
| 85 |
$(top_builddir)/plugin/dot_layout/libgvplugin_dot_layout_C.la \ |
| 86 |
$(top_builddir)/plugin/kitty/libgvplugin_kitty_C.la \ |
| 87 |
$(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout_C.la \ |
| 88 |
$(top_builddir)/plugin/core/libgvplugin_core_C.la \ |
| 89 |
$(top_builddir)/plugin/vt/libgvplugin_vt_C.la \ |
| 90 |
$(top_builddir)/lib/gvc/libgvc_C.la \ |
| 91 |
$(top_builddir)/lib/pathplan/libpathplan_C.la \ |
| 92 |
$(top_builddir)/lib/xdot/libxdot_C.la \ |
| 93 |
$(top_builddir)/lib/cgraph/libcgraph_C.la \ |
| 94 |
$(top_builddir)/lib/cdt/libcdt_C.la \ |
| 95 |
$(top_builddir)/lib/util/libutil_C.la \ |
| 96 |
$(PANGOCAIRO_LIBS) $(PANGOFT2_LIBS) $(GTS_LIBS) $(EXPAT_LIBS) $(Z_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS) |
| 97 |
|
| 98 |
dot_builtins_SOURCES = dot.c dot_builtins.cpp |
| 99 |
dot_builtins_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1 |
| 100 |
dot_builtins_LDADD = \ |
| 101 |
$(top_builddir)/plugin/dot_layout/libgvplugin_dot_layout.la \ |
| 102 |
$(top_builddir)/plugin/kitty/libgvplugin_kitty.la \ |
| 103 |
$(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout.la \ |
| 104 |
$(top_builddir)/plugin/core/libgvplugin_core.la \ |
| 105 |
$(top_builddir)/plugin/vt/libgvplugin_vt.la \ |
| 106 |
$(top_builddir)/lib/gvc/libgvc.la \ |
| 107 |
$(top_builddir)/lib/pathplan/libpathplan.la \ |
| 108 |
$(top_builddir)/lib/xdot/libxdot.la \ |
| 109 |
$(top_builddir)/lib/cgraph/libcgraph.la \ |
| 110 |
$(top_builddir)/lib/cdt/libcdt.la \ |
| 111 |
$(GTS_LIBS) $(EXPAT_LIBS) $(Z_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS) |
| 112 |
|
| 113 |
if WITH_QUARTZ |
| 114 |
dot_static_LDADD += $(top_builddir)/plugin/quartz/.libs/libgvplugin_quartz_C.a $(QUARTZ_LIBS) |
| 115 |
dot_builtins_LDADD += $(top_builddir)/plugin/quartz/libgvplugin_quartz.la $(QUARTZ_LIBS) |
| 116 |
endif |
| 117 |
|
| 118 |
if WITH_LIBGD |
| 119 |
dot_static_LDADD += $(top_builddir)/plugin/gd/.libs/libgvplugin_gd_C.a $(GDLIB_LIBS) |
| 120 |
dot_builtins_LDADD += $(top_builddir)/plugin/gd/libgvplugin_gd.la $(GDLIB_LIBS) |
| 121 |
endif |
| 122 |
|
| 123 |
if WITH_PANGOCAIRO |
| 124 |
dot_static_LDADD += $(top_builddir)/plugin/pango/.libs/libgvplugin_pango_C.a $(PANGOCAIRO_LIBS) $(PANGOFT2_LIBS) |
| 125 |
dot_builtins_LDADD += $(top_builddir)/plugin/pango/libgvplugin_pango.la $(PANGOCAIRO_LIBS) |
| 126 |
if WITH_WEBP |
| 127 |
dot_static_LDADD += $(top_builddir)/plugin/webp/.libs/libgvplugin_webp_C.a $(WEBP_LIBS) |
| 128 |
dot_builtins_LDADD += $(top_builddir)/plugin/webp/libgvplugin_webp.la $(WEBP_LIBS) |
| 129 |
endif |
| 130 |
endif |
| 131 |
|
| 132 |
if WITH_LASI |
| 133 |
dot_static_LDADD += $(top_builddir)/plugin/lasi/.libs/libgvplugin_lasi_C.a $(LASI_LIBS) |
| 134 |
dot_builtins_LDADD += $(top_builddir)/plugin/lasi/libgvplugin_lasi.la $(LASI_LIBS) |
| 135 |
endif |
| 136 |
|
| 137 |
DISTCLEANFILES = $(pdf_DATA) |