Makefile.am 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ## Process this file with automake to produce Makefile.in
  2. SUBDIRS = demo
  3. pkgtcldir = $(pkglibdir)/tcl
  4. AM_CPPFLAGS = \
  5. -I$(top_srcdir) \
  6. -I$(top_srcdir)/lib \
  7. $(GDLIB_CFLAGS) $(TCL_INCLUDES)
  8. LIBS = @LIBS@ -lc
  9. AM_CFLAGS = $(TCL_CFLAGS)
  10. man = gdtclft.3tcl
  11. if WITH_LIBGD
  12. if WITH_TCL
  13. pkgtcl_LTLIBRARIES = libgdtclft.la
  14. man_MANS = $(man)
  15. if ENABLE_MAN_PDFS
  16. pdf_DATA = gdtclft.3tcl.pdf
  17. endif
  18. noinst_LTLIBRARIES = libgdtclft_C.la
  19. endif
  20. endif
  21. libgdtclft_la_SOURCES = gdtclft.c
  22. libgdtclft_C_la_SOURCES = gdtclft.c
  23. libgdtclft_la_LDFLAGS = -no-undefined -module -avoid-version
  24. if WITH_LIBGD
  25. libgdtclft_la_LIBADD = \
  26. $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
  27. $(GDLIB_LIBS)
  28. if WITH_TCL
  29. BUILT_SOURCES = pkgIndex.tcl
  30. all-local: pkgIndex.tcl
  31. pkgIndex.tcl:
  32. python3 $(top_srcdir)/tclpkg/mkpkgindex.py \
  33. --file libgdtclft$(SHARED_LIBRARY_SUFFIX) \
  34. --name Gdtclft \
  35. --version $(VERSION)
  36. test:
  37. echo 'load .libs/libgdtclft$(TCL_SHLIB_SUFFIX) Gdtclft ; cd tests ; source all' | tclsh8.3
  38. endif
  39. endif
  40. .3tcl.3tcl.pdf:
  41. rm -f $@; pdffile=$@; psfile=$${pdffile%pdf}ps; \
  42. $(GROFF) -Tps -man $< > $$psfile || { rm -f $$psfile; exit 1; }; \
  43. $(PS2PDF) $$psfile && rm -f $$psfile || { rm -f $$psfile; exit 1; }
  44. SUFFIXES = .3tcl .3tcl.pdf
  45. EXTRA_DIST = $(man)
  46. DISTCLEANFILES = $(pdf_DATA) pkgIndex.tcl