diff options
| author | Bryan Henderson <bryanh@giraffe.netgate.net> | 1996-11-12 11:43:32 +0000 |
|---|---|---|
| committer | Bryan Henderson <bryanh@giraffe.netgate.net> | 1996-11-12 11:43:32 +0000 |
| commit | d7dd9295b7b8258a32eee07df273839248dcaa51 (patch) | |
| tree | 4fc74a74b2ac5510545bf45eddf97a49e2ebf2b3 /src/interfaces/libpgtcl | |
| parent | 594525aec1a879743cd023503744918d51483149 (diff) | |
| download | postgresql-d7dd9295b7b8258a32eee07df273839248dcaa51.tar.gz | |
End of the make file simplifications.
Diffstat (limited to 'src/interfaces/libpgtcl')
| -rw-r--r-- | src/interfaces/libpgtcl/Makefile | 53 |
1 files changed, 34 insertions, 19 deletions
diff --git a/src/interfaces/libpgtcl/Makefile b/src/interfaces/libpgtcl/Makefile index 2473451d10..e4c0f15866 100644 --- a/src/interfaces/libpgtcl/Makefile +++ b/src/interfaces/libpgtcl/Makefile @@ -7,40 +7,55 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.4 1996/11/08 00:58:07 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.5 1996/11/12 11:42:09 bryanh Exp $ # #------------------------------------------------------------------------- -LIB= pgtcl +SRCDIR= .. +LIBPQDIR= $(SRCDIR)/libpq +include ../Makefile.global -MKDIR= ../mk -include $(MKDIR)/postgres.mk - -CFLAGS+= -I$(HEADERDIR) \ - -I$(srcdir)/backend/include \ - -I$(srcdir)/backend \ - -I$(CURDIR) \ - -I$(TCL_INCDIR) \ - -I$(srcdir)/libpq - -LIBLDLIBS+= -L$(LIBDIR) -lpq +INCLUDE_OPT= \ + -I../backend \ + -I../include \ + -I$(LIBPQDIR) \ + -I$(TCL_INCDIR) +CFLAGS+= $(INCLUDE_OPT) ifdef KRBVERS CFLAGS+= $(KRBFLAGS) endif ifdef LINUX_ELF CFLAGS += -fPIC -CC += -L $(POSTGRESDIR)/lib -lpq endif -LIBSRCS= pgtcl.c pgtclCmds.c pgtclId.c +OBJS= pgtcl.o pgtclCmds.o pgtclId.o -install-headers: - $(INSTALL) $(INSTLOPTS) libpgtcl.h $(HEADERDIR)/libpgtcl.h +all: libpgtcl.a + +libpgtcl.a: $(OBJS) +ifdef MK_NO_LORDER + $(AR) $(AROPT) libpgtcl.a $(OBJS) +else + $(AR) $(AROPT) libpgtcl.a `lorder $(OBJS) | tsort` +endif + $(RANLIB) libpgtcl.a + +.PHONY: beforeinstall-headers install-headers +.PHONY: install install-libpgtcl +install: install-headers install-libpgtcl + +install-headers: beforeinstall-headers libpgtcl.h + $(INSTALL) $(INSTLOPTS) libpgtcl.h $(HEADERDIR)/libpgtcl.h -install:: install-headers +beforeinstall-headers: + @if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi -include $(MKDIR)/postgres.lib.mk +install-libpgtcl: libpgtcl.a + $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.a $(DESTDIR)$(LIBDIR)/libpgtcl.a +.PHONY: clean +clean: + rm -f $(OBJS)
\ No newline at end of file |
