From 44f64dd3eac840866d884269c8011b22d416bf3c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 28 Jun 2000 18:30:16 +0000 Subject: Makefile cleanup for interface tree. Now essentially with all the standard targets and behaviour. Replaced Makefile.in's with Makefile's and declared the respective variables in Makefile.global. maintainer-clean target now available at top level, although it does not work in the backend tree yet. Cleanup pass over Makefile.shlib, renamed some targets and variables. The shared library symlink tests are now done by make, not the shell. ecpg: Remove one warning in sloppy flex output. PL/Perl and Perl interface: the MakeMaker documentation is confusing, the realclean target *does* "delete derived files", but it also uninstalls them. Don't use that. The submake targets in the various bin directories that update libpq should `make all', not `make libpq.a'. That is a) unportable, and b) doesn't build the shared library. --- src/interfaces/libpgtcl/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/interfaces/libpgtcl/Makefile (limited to 'src/interfaces/libpgtcl/Makefile') diff --git a/src/interfaces/libpgtcl/Makefile b/src/interfaces/libpgtcl/Makefile new file mode 100644 index 00000000000..72c53bc2bc0 --- /dev/null +++ b/src/interfaces/libpgtcl/Makefile @@ -0,0 +1,55 @@ +#------------------------------------------------------------------------- +# +# Makefile for libpgtcl library +# +# Copyright (c) 1994, Regents of the University of California +# +# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.19 2000/06/28 18:29:43 petere Exp $ +# +#------------------------------------------------------------------------- + +subdir = src/interfaces/libpgtcl +top_builddir = ../../.. +include ../../Makefile.global + +NAME= pgtcl +SO_MAJOR_VERSION= 2 +SO_MINOR_VERSION= 1 + +CFLAGS+= -I$(LIBPQDIR) + +OBJS= pgtcl.o pgtclCmds.o pgtclId.o + +SHLIB_LINK+= $(LIBPQ) + +# If crypt is a separate library, rather than part of libc, it may need +# to be referenced separately to keep (broken) linkers happy. (This is +# braindead; users of libpq should not need to know what it depends on.) +SHLIB_LINK+= $(findstring -lcrypt,$(LIBS)) + +all: all-lib + +# Shared library stuff +include $(top_srcdir)/src/Makefile.shlib + +install: all installdirs install-headers install-lib + +.PHONY: install-headers +install-headers: libpgtcl.h + $(INSTALL_DATA) $< $(includedir)/libpgtcl.h + +installdirs: + $(mkinstalldirs) $(libdir) $(includedir) + +uninstall: uninstall-lib + rm -f $(includedir)/libpgtcl.h + +clean distclean maintainer-clean: clean-lib + rm -f $(OBJS) + +depend dep: + $(CC) -MM $(CFLAGS) *.c >depend + +ifeq (depend,$(wildcard depend)) +include depend +endif -- cgit v1.2.3