diff options
Diffstat (limited to 'src/bin/psql')
-rw-r--r-- | src/bin/psql/Makefile | 12 | ||||
-rw-r--r-- | src/bin/psql/psql.c | 6 | ||||
-rw-r--r-- | src/bin/psql/stringutils.c | 6 |
3 files changed, 17 insertions, 7 deletions
diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile index 30c3b229bc8..d67aade69ba 100644 --- a/src/bin/psql/Makefile +++ b/src/bin/psql/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.14 1996/11/26 03:19:54 bryanh Exp $ +# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.15 1996/11/26 07:38:24 bryanh Exp $ # #------------------------------------------------------------------------- @@ -16,8 +16,7 @@ include ../../Makefile.global INCLUDE_OPT:= \ -I$(LIBPQDIR) \ - -I../../include \ - -I../../backend/port/$(PORTNAME) + -I../../include CFLAGS+= $(INCLUDE_OPT) # @@ -63,11 +62,18 @@ ifneq ($(USE_READLINE), true) OBJS+= rlstubs.o endif +ifeq ($(PORTNAME), ultrix4) +OBJS+= ../../utils/strdup.o +endif + all: submake psql psql: $(OBJS) $(LIBPQDIR)/libpq.a $(CC) $(LDFLAGS) -o psql -L$(LIBPQDIR) $(OBJS) -lpq $(LD_ADD) +../../utils/strdup.o: + $(MAKE) -C ../../utils strdup.o + .PHONY: submake submake: $(MAKE) -C $(LIBPQDIR) libpq.a diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 8202d6db7b4..2902d66fdbc 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.34 1996/11/26 03:19:58 bryanh Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.35 1996/11/26 07:38:28 bryanh Exp $ * *------------------------------------------------------------------------- */ @@ -24,7 +24,9 @@ #include "libpq-fe.h" #include "stringutils.h" #include "psqlHelp.h" -#include <port-protos.h> /* for strdup() */ +#ifdef NEED_STRDUP +#include "strdup.h" +#endif #ifdef NOREADLINE #include "rlstubs.h" diff --git a/src/bin/psql/stringutils.c b/src/bin/psql/stringutils.c index 5d209ec859a..6ea00dd50ba 100644 --- a/src/bin/psql/stringutils.c +++ b/src/bin/psql/stringutils.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.6 1996/11/26 03:20:06 bryanh Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.7 1996/11/26 07:38:36 bryanh Exp $ * *------------------------------------------------------------------------- */ @@ -16,7 +16,9 @@ #include <ctype.h> #include <stdlib.h> -#include <port-protos.h> /* for strdup() */ +#ifdef NEED_STRDUP +#include "strdup.h" +#endif #include "stringutils.h" |