diff options
Diffstat (limited to 'src/interfaces/libpgeasy/Makefile')
-rw-r--r-- | src/interfaces/libpgeasy/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/interfaces/libpgeasy/Makefile b/src/interfaces/libpgeasy/Makefile new file mode 100644 index 00000000000..fdc64459746 --- /dev/null +++ b/src/interfaces/libpgeasy/Makefile @@ -0,0 +1,55 @@ +#------------------------------------------------------------------------- +# +# Makefile for src/interfaces/libpgeasy +# +# $Header: /cvsroot/pgsql/src/interfaces/libpgeasy/Attic/Makefile,v 1.1 2000/06/28 18:29:41 petere Exp $ +# +#------------------------------------------------------------------------- + +subdir = src/interfaces/libpgeasy +top_builddir = ../../.. +include ../../Makefile.global + + +# shared library parameters +NAME= pgeasy +SO_MAJOR_VERSION= 2 +SO_MINOR_VERSION= 1 + +CFLAGS+= -I$(LIBPQDIR) + +OBJS= libpgeasy.o halt.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: libpgeasy.h + $(INSTALL_DATA) $< $(includedir)/libpgeasy.h + +installdirs: + $(mkinstalldirs) $(libdir) $(includedir) + +uninstall: uninstall-lib + rm -f $(includedir)/libpgeasy.h + +clean distclean maintainer-clean: clean-lib + rm -f $(OBJS) + +depend dep: + $(CC) -MM $(CFLAGS) *.c >depend + +ifeq (depend,$(wildcard depend)) +include depend +endif |