X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Ftcl%2FMakefile.am;h=c73a6e2e0b1bf87a3d93becf2bcd82c376ce436d;hb=5fc7ff89bdbced9c593c566fea9840a269935dcd;hp=7b2393102aa84ad363c0f1cbdc6aa11f9ae2821f;hpb=b19eb0bf096c125f806a49eff07c6634e8b035d5;p=rrdtool.git diff --git a/bindings/tcl/Makefile.am b/bindings/tcl/Makefile.am index 7b23931..c73a6e2 100644 --- a/bindings/tcl/Makefile.am +++ b/bindings/tcl/Makefile.am @@ -20,7 +20,14 @@ AM_CPPFLAGS = -I$(TCL_PREFIX)/include -I$(SRC_DIR) -DUSE_TCL_STUBS LIBDIRS = -L$(top_builddir)/src/.libs -L$(top_builddir)/src -L$(libdir) LIB_RUNTIME_DIR = $(libdir) -pkglibdir = @TCL_PACKAGE_DIR@ +if BUILD_TCL_SITE +tclpkgdir = @TCL_PACKAGE_DIR@ +tclpkg_DATA = pkgIndex.tcl +tclpkg_SCRIPTS = ifOctets.tcl +else +pkglib_DATA = pkgIndex.tcl +pkglib_SCRIPTS = ifOctets.tcl +endif # Automake doen't like `tclrrd$(VERSION)$(TCL_SHLIB_SUFFIX)' as # library name. So we build and install this library `by hand'. @@ -34,12 +41,8 @@ lib_LIBRARIES = all-local: $(TCL_RRD_LIB) -pkglib_DATA = pkgIndex.tcl - -pkglib_SCRIPTS = ifOctets.tcl - $(TCL_RRD_LIB): tclrrd.o - $(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd -lm $(TCL_STUB_LIB_SPEC) $(LIBS) + $(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd_th -lm $(TCL_STUB_LIB_SPEC) $(LDFLAGS) $(LIBS) tclrrd.o: tclrrd.c $(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) -c $< -DVERSION=\"$(VERSION)\"