AC_DEFINE_UNQUOTED(DEFAULT_DPI,$DEFAULT_DPI,Default DPI.)
AC_DEFINE_UNQUOTED(BROWSER,"$BROWSER",[Command to open a browser on a URL])
-AM_INIT_AUTOMAKE([no-define])
+AM_INIT_AUTOMAKE([no-define subdir-objects])
# Suppress verbose compile lines
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
pkgtcl_LTLIBRARIES = libgdtclft.la
man_MANS = $(man)
pdf_DATA = $(pdf)
+noinst_LTLIBRARIES = libgdtclft_C.la
endif
endif
libgdtclft_la_SOURCES = gdtclft.c
+libgdtclft_C_la_SOURCES = gdtclft.c
libgdtclft_la_LDFLAGS = -no-undefined
# tclhandle still needed for gd
TCLHANDLE_INCLUDES=-I$(top_srcdir)/tclpkg/tclhandle
TCLHANDLE_LIBS=$(top_builddir)/tclpkg/tclhandle/libtclhandle_C.la
+if WITH_LIBGD
+GDTCLFT_LIBS = $(top_srcdir)/tclpkg/gdtclft/libgdtclft_C.la
+endif
pdfdir = $(pkgdatadir)/doc/pdf
htmldir = $(pkgdatadir)/doc/html
html_DATA = $(html)
endif
-if WITH_LIBGD
-GDTCLFT = $(top_srcdir)/tclpkg/gdtclft/gdtclft.c
-endif
-
libtcldot_la_SOURCES = \
tcldot.c \
tcldot-graphcmd.c \
libtcldot_la_CPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1
libtcldot_la_LDFLAGS = -no-undefined
-libtcldot_la_LIBADD = $(TCLHANDLE_LIBS) \
- $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
+libtcldot_la_LIBADD = $(TCLHANDLE_LIBS) $(GDTCLFT_LIBS) \
+ $(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
$(top_builddir)/lib/cdt/libcdt.la \
$(top_builddir)/lib/cgraph/libcgraph.la \
$(top_builddir)/lib/pathplan/libpathplan_C.la \