Makefile.am 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ## Process this file with automake to produce Makefile.in
  2. SUBDIRS = demo
  3. if WITH_LIBGD
  4. GDTCLFT_LIBS = $(top_builddir)/tclpkg/gdtclft/libgdtclft_C.la
  5. endif
  6. pkgtcldir = $(pkglibdir)/tcl
  7. AM_CPPFLAGS = \
  8. -I$(top_srcdir)/lib \
  9. -I$(top_srcdir)/lib/gvc \
  10. -I$(top_srcdir)/lib/common \
  11. -I$(top_srcdir)/lib/cgraph \
  12. -I$(top_srcdir)/lib/cdt \
  13. -I$(top_srcdir)/lib/pathplan $(GDLIB_CFLAGS) $(TCL_INCLUDES)
  14. LIBS = -lc $(TCL_STUB_LIB_SPEC)
  15. AM_CFLAGS = $(TCL_CFLAGS)
  16. man = tcldot.3tcl
  17. if WITH_TCL
  18. noinst_HEADERS = tcldot.h
  19. pkgtcl_LTLIBRARIES = libtcldot.la libtcldot_builtin.la
  20. man_MANS = $(man)
  21. if ENABLE_MAN_PDFS
  22. pdf_DATA = tcldot.3tcl.pdf
  23. endif
  24. dist_html_DATA = tcldot.html
  25. endif
  26. libtcldot_la_SOURCES = \
  27. tcldot.c \
  28. tcldot-graphcmd.c \
  29. tcldot-nodecmd.c \
  30. tcldot-edgecmd.c \
  31. tcldot-util.c \
  32. tcldot-id.c \
  33. tcldot-io.c \
  34. no_builtins.c $(GDTCLFT)
  35. libtcldot_la_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1
  36. libtcldot_la_LDFLAGS = -no-undefined -module -avoid-version
  37. libtcldot_la_LIBADD = $(GDTCLFT_LIBS) \
  38. $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
  39. $(top_builddir)/lib/gvc/libgvc.la \
  40. $(top_builddir)/lib/pathplan/libpathplan_C.la \
  41. $(top_builddir)/lib/cgraph/libcgraph.la \
  42. $(top_builddir)/lib/cdt/libcdt.la
  43. # GDTCLFT requires gd libs to be builtin
  44. if WITH_LIBGD
  45. libtcldot_la_LIBADD += $(GDLIB_LIBS)
  46. endif
  47. libtcldot_la_LIBADD += $(MATH_LIBS)
  48. libtcldot_builtin_la_SOURCES = \
  49. tcldot.c \
  50. tcldot-graphcmd.c \
  51. tcldot-nodecmd.c \
  52. tcldot-edgecmd.c \
  53. tcldot-util.c \
  54. tcldot-id.c \
  55. tcldot-io.c \
  56. tcldot_builtins.cpp $(GDTCLFT)
  57. libtcldot_builtin_la_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1
  58. libtcldot_builtin_la_LDFLAGS = -no-undefined -module -avoid-version
  59. libtcldot_builtin_la_LIBADD = $(GDTCLFT_LIBS) \
  60. $(top_builddir)/plugin/dot_layout/libgvplugin_dot_layout_C.la \
  61. $(top_builddir)/plugin/neato_layout/libgvplugin_neato_layout_C.la \
  62. $(top_builddir)/plugin/core/libgvplugin_core_C.la \
  63. $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
  64. $(top_builddir)/lib/gvc/libgvc_C.la \
  65. $(top_builddir)/lib/pathplan/libpathplan_C.la \
  66. $(top_builddir)/lib/cgraph/libcgraph_C.la \
  67. $(top_builddir)/lib/cdt/libcdt_C.la \
  68. $(top_builddir)/lib/util/libutil_C.la \
  69. $(GTS_LIBS)
  70. if WITH_PANGOCAIRO
  71. libtcldot_builtin_la_LIBADD += $(top_builddir)/plugin/pango/libgvplugin_pango_C.la $(PANGOCAIRO_LIBS) $(PANGOFT2_LIBS)
  72. endif
  73. if WITH_LIBGD
  74. libtcldot_builtin_la_LIBADD += $(top_builddir)/plugin/gd/libgvplugin_gd_C.la
  75. libtcldot_builtin_la_LIBADD += $(GDLIB_LIBS)
  76. endif
  77. libtcldot_builtin_la_LIBADD += $(EXPAT_LIBS) $(IPSEPCOLA_LIBS) $(MATH_LIBS)
  78. if WITH_TCL
  79. BUILT_SOURCES = pkgIndex.tcl
  80. all-local: pkgIndex.tcl
  81. pkgIndex.tcl:
  82. python3 $(top_srcdir)/tclpkg/mkpkgindex.py \
  83. --file libtcldot$(SHARED_LIBRARY_SUFFIX) \
  84. --name Tcldot \
  85. --version $(VERSION)
  86. endif
  87. .3tcl.3tcl.pdf:
  88. rm -f $@; pdffile=$@; psfile=$${pdffile%pdf}ps; \
  89. $(GROFF) -Tps -man $< > $$psfile || { rm -f $$psfile; exit 1; }; \
  90. $(PS2PDF) $$psfile && rm -f $$psfile || { rm -f $$psfile; exit 1; }
  91. SUFFIXES = .3tcl .3tcl.pdf
  92. EXTRA_DIST = $(man) README README.Tkspline
  93. DISTCLEANFILES = $(pdf_DATA) pkgIndex.tcl