diff options
author | Bryan Henderson <bryanh@giraffe.netgate.net> | 1996-12-30 23:19:48 +0000 |
---|---|---|
committer | Bryan Henderson <bryanh@giraffe.netgate.net> | 1996-12-30 23:19:48 +0000 |
commit | 9b94bcea216acd7f75545d9703361682100a084e (patch) | |
tree | 39971ddbac9de8e188945f22a48db4e0ad40dcd2 | |
parent | 7ab0ceb824c90dbfd487b8b456e0830d197aa858 (diff) | |
download | postgresql-9b94bcea216acd7f75545d9703361682100a084e.tar.gz postgresql-9b94bcea216acd7f75545d9703361682100a084e.zip |
Put $(CURSES_LIB) in Makefile.global to replace similar thing in psql/Makefile.
-rw-r--r-- | src/Makefile.global | 24 | ||||
-rw-r--r-- | src/bin/psql/Makefile | 7 |
2 files changed, 19 insertions, 12 deletions
diff --git a/src/Makefile.global b/src/Makefile.global index 6ff5e585902..be16098e6e2 100644 --- a/src/Makefile.global +++ b/src/Makefile.global @@ -7,14 +7,21 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.79 1996/12/28 02:11:37 momjian Exp $ +# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.80 1996/12/30 23:19:23 bryanh Exp $ # # NOTES # Essentially all Postgres make files include this file and use the -# variables it sets. To -# override the default setting, create a Makefile.custom in this +# variables it sets. +# +# To override the default setting, create a Makefile.custom in this # directory and put your defines there. (Makefile.custom is included -# near the end of this file.) +# near the end of this file). Sometimes, a variable gets set in +# Makefile.global after Makefile.custom has been included, so you can't +# simply set that variable in Makefile.custom. In those cases, there is +# often another variable (like CUSTOM_COPT) that you can set in +# Makefile.custom that influences the later setting of the true variable +# of interest (like CFLAGS) by Makefile.global. +# # # If you change any of these defines you probably have to # make clean; make @@ -133,10 +140,6 @@ OIDNAMELEN= 36 # Compile libpq++ #HAVE_Cplusplus= true -# Uncomment out CUSTOM_COPT to generate a debug version -# This overrides the compiler flags defined later in this file -#CUSTOM_COPT=-g - # Commenting out CASSERT will make things go a LOT faster, but you will # also loose a lot of useful error-checking. CASSERT= true @@ -166,6 +169,11 @@ READLINE_LIB= -L/home/tools/lib -lreadline #HISTORY_INC= -I/home/tools/include -I/home/tools/include/readline #HISTORY_LIB= -L/home/tools/lib -lhistory +# curses is required by readline. Ncurses has obsoleted curses, and may +# in fact be what goes by the name "curses" on this system. + +CURSES_LIB= -L/home/tools/lib -lcurses + # If you plan to use Kerberos for authentication... # # Comment out KRBVERS if you do not use Kerberos. diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile index 24a20217300..8b13ae457dc 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.16 1996/12/04 03:06:16 bryanh Exp $ +# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.17 1996/12/30 23:19:48 bryanh Exp $ # #------------------------------------------------------------------------- @@ -26,13 +26,12 @@ CFLAGS+= $(INCLUDE_OPT) ifeq ($(USE_READLINE), true) CFLAGS+= $(READLINE_INC) $(HISTORY_INC) - LIBCURSES= -lcurses - LD_ADD+= $(READLINE_LIB) $(HISTORY_LIB) $(LIBCURSES) + LD_ADD+= $(READLINE_LIB) $(HISTORY_LIB) $(CURSES_LIB) ifeq ($(PORTNAME), ultrix4) LD_ADD+= -ltermcap else - ifeq ($(PORTNAME), sunos4) + ifeq ($(PORTNAME), sparc) LD_ADD+= -ltermcap else ifeq ($(PORTNAME), linux) |