mirror of
https://github.com/postgres/postgres.git
synced 2026-04-20 22:00:13 -04:00
Add options to configure to automatically build for Kerberos support; no more editing of make files.
60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile
|
|
# Makefile for libpgtcl library
|
|
#
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.44 2000/06/17 00:10:05 petere Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
NAME= pgtcl
|
|
SO_MAJOR_VERSION= 2
|
|
SO_MINOR_VERSION= 1
|
|
|
|
SRCDIR= ../..
|
|
include $(SRCDIR)/Makefile.global
|
|
|
|
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))
|
|
|
|
# Shared library stuff, also default 'all' target
|
|
include $(SRCDIR)/Makefile.shlib
|
|
|
|
.PHONY: install beforeinstall-headers install-headers
|
|
|
|
install: install-headers install-lib $(install-shlib-dep)
|
|
|
|
install-headers: beforeinstall-headers libpgtcl.h
|
|
$(INSTALL) $(INSTLOPTS) libpgtcl.h $(HEADERDIR)/libpgtcl.h
|
|
|
|
beforeinstall-headers:
|
|
-@if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
|
|
|
|
Makefile.tcldefs: mkMakefile.tcldefs.sh
|
|
/bin/sh mkMakefile.tcldefs.sh
|
|
|
|
Makefile.tkdefs: mkMakefile.tkdefs.sh
|
|
/bin/sh mkMakefile.tkdefs.sh
|
|
|
|
.PHONY: clean
|
|
|
|
clean: clean-shlib
|
|
rm -f lib$(NAME).a $(OBJS)
|
|
|
|
depend dep:
|
|
$(CC) -MM $(CFLAGS) *.c >depend
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|