pkgtcldir = $(pkglibdir)/tcl
-AM_CPPFLAGS = \
- -I$(top_srcdir)/lib \
- -I$(top_srcdir)/tclpkg/tclhandle \
- -I$(top_srcdir)/lib/pathplan $(TCL_INCLUDES)
-
-AM_CFLAGS = $(TCL_CFLAGS)
-
-LIBS = -lc $(TCL_STUB_LIB_SPEC)
-
noinst_HEADERS = makecw.h simple.h
if WITH_TCL
pkgtcl_LTLIBRARIES = libtclplan.la
endif
libtclplan_la_SOURCES = find_ints.c intersect.c makecw.c tclpathplan.c wrapper.c
+libtclplan_la_CPPFLAGS = \
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/tclpkg/tclhandle \
+ -I$(top_srcdir)/lib/pathplan $(TCL_INCLUDES)
+libtclplan_la_CFLAGS = $(TCL_CFLAGS)
libtclplan_la_LDFLAGS = -no-undefined
libtclplan_la_LIBADD = \
$(top_builddir)/tclpkg/tclhandle/libtclhandle_C.la \
$(top_builddir)/tclpkg/tclstubs/libtclstubs_C.la \
- $(top_builddir)/lib/pathplan/libpathplan.la $(MATH_LIBS)
+ $(top_builddir)/lib/pathplan/libpathplan.la $(MATH_LIBS) \
+ -lc $(TCL_STUB_LIB_SPEC)
if WITH_TCL
all-local: pkgIndex.tcl
## Process this file with automake to produce Makefile.in
-AM_CPPFLAGS = $(TCL_CFLAGS) $(TCL_INCLUDES)
-
-LIBS = $(TCL_STUB_LIB_SPEC)
-
if WITH_TCL
noinst_LTLIBRARIES = libtclstubs_C.la
noinst_HEADERS = tclInt.h
# tclStubLib.c is a dummy file just to fool automake
libtclstubs_C_la_SOURCES = tclStubLib.c
+libtclstubs_C_la_CPPFLAGS = $(TCL_CFLAGS) $(TCL_INCLUDES)
+libtclstubs_C_la_LIBADD = $(TCL_STUB_LIB_SPEC)
# Process this file with automake to produce Makefile.in
-AM_CPPFLAGS = $(TCL_CFLAGS) $(TK_CFLAGS) $(TCL_INCLUDES) $(TK_INCLUDES) $(TK_XINCLUDES)
-
-LIBS = $(TK_STUB_LIB_SPEC)
-
if WITH_TK
noinst_LTLIBRARIES = libtkstubs_C.la
noinst_HEADERS = tkInt.h
# tkStubLib.c is a dummy file just to fool automake
libtkstubs_C_la_SOURCES = tkStubLib.c tkStubImg.c
+libtkstubs_C_la_CPPFLAGS = $(TCL_CFLAGS) $(TK_CFLAGS) $(TCL_INCLUDES) $(TK_INCLUDES) $(TK_XINCLUDES)
+libtkstubs_C_la_LIBADD = $(TK_STUB_LIB_SPEC)