Makefile 1.36 KB
Newer Older
1 2 3 4 5 6
#-------------------------------------------------------------------------
#
# Makefile for libpgtcl library
#
# Copyright (c) 1994, Regents of the University of California
#
7
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.21 2000/09/17 13:02:49 petere Exp $
8 9 10 11 12 13 14 15 16 17 18
#
#-------------------------------------------------------------------------

subdir = src/interfaces/libpgtcl
top_builddir = ../../..
include ../../Makefile.global

NAME= pgtcl
SO_MAJOR_VERSION= 2
SO_MINOR_VERSION= 1

19
CPPFLAGS += -I$(libpq_srcdir)
20 21 22

OBJS= pgtcl.o pgtclCmds.o pgtclId.o

23
SHLIB_LINK+= $(libpq)
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

# 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
39
	$(INSTALL_DATA) $< $(DESTDIR)$(includedir)/libpgtcl.h
40 41

installdirs:
42
	$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
43 44

uninstall: uninstall-lib
45
	rm -f $(DESTDIR)$(includedir)/libpgtcl.h
46 47 48 49 50 51 52 53 54 55

clean distclean maintainer-clean: clean-lib
	rm -f $(OBJS)

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

ifeq (depend,$(wildcard depend))
include depend
endif