Makefile.am 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ## Process this file with automake to produce Makefile.in
  2. GVC_VERSION = "6:0:0"
  3. AM_CPPFLAGS = \
  4. -I$(top_srcdir)/lib \
  5. -I$(top_srcdir)/lib/common \
  6. -I$(top_srcdir)/lib/pathplan \
  7. -I$(top_srcdir)/lib/cgraph \
  8. -I$(top_srcdir)/lib/cdt \
  9. $(INCLTDL) -DGVLIBDIR='"$(pkglibdir)"'
  10. if WITH_WIN32
  11. AM_CFLAGS = -DGVC_EXPORTS=1
  12. endif
  13. LIBS = $(Z_LIBS) $(MATH_LIBS)
  14. pkginclude_HEADERS = gvc.h gvcext.h gvplugin.h gvcjob.h \
  15. gvcommon.h gvplugin_render.h gvplugin_layout.h gvconfig.h \
  16. gvplugin_textlayout.h gvplugin_device.h gvplugin_loadimage.h
  17. noinst_HEADERS = gvcint.h gvcproc.h gvio.h
  18. noinst_LTLIBRARIES = libgvc_C.la
  19. lib_LTLIBRARIES = libgvc.la
  20. pkgconfig_DATA = libgvc.pc
  21. dist_man_MANS = gvc.3
  22. if ENABLE_MAN_PDFS
  23. pdf_DATA = gvc.3.pdf
  24. endif
  25. libgvc_C_la_SOURCES = gvrender.c gvlayout.c gvdevice.c gvloadimage.c \
  26. gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c \
  27. gvtool_tred.c gvtextlayout.c gvusershape.c gvc.c
  28. libgvc_C_la_LIBADD = \
  29. $(top_builddir)/lib/pack/libpack_C.la \
  30. $(top_builddir)/lib/common/libcommon_C.la \
  31. $(top_builddir)/lib/label/liblabel_C.la
  32. if WITH_ORTHO
  33. libgvc_C_la_LIBADD += $(top_builddir)/lib/ortho/libortho_C.la
  34. endif
  35. if ENABLE_LTDL
  36. libgvc_C_la_LIBADD += $(LIBLTDL)
  37. endif
  38. libgvc_la_LDFLAGS = -version-info $(GVC_VERSION) -no-undefined
  39. libgvc_la_SOURCES = $(libgvc_C_la_SOURCES)
  40. libgvc_la_LIBADD = $(libgvc_C_la_LIBADD) \
  41. $(top_builddir)/lib/pathplan/libpathplan.la \
  42. $(top_builddir)/lib/cgraph/libcgraph.la \
  43. $(top_builddir)/lib/cdt/libcdt.la \
  44. $(top_builddir)/lib/util/libutil_C.la \
  45. $(EXPAT_LIBS) $(Z_LIBS) $(MATH_LIBS)
  46. .3.3.pdf:
  47. rm -f $@; pdffile=$@; psfile=$${pdffile%pdf}ps; \
  48. $(GROFF) -Tps -man $< > $$psfile || { rm -f $$psfile; exit 1; }; \
  49. $(PS2PDF) $$psfile && rm -f $$psfile || { rm -f $$psfile; exit 1; }
  50. SUFFIXES = .3 .3.pdf
  51. DISTCLEANFILES = $(pdf_DATA)