1 #-------------------------------------------------------------------------
4 # Makefile for bin/psql
6 # Copyright (c) 1994, Regents of the University of California
10 # $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.3 1996/07/20 07:40:03 scrappy Exp $
12 #-------------------------------------------------------------------------
17 include $(MKDIR)/postgres.mk
18 include ../Makefile.global
21 #USE_READLINE is set in Makefile.global
24 ifeq ($(USE_READLINE), true)
25 CFLAGS += -I$(READLINE_INCDIR) -I$(HISTORY_INCDIR)
27 # if you are using an older readline that uses #include "readline.h" instead
28 # of #include <readline/readline.h>,
30 # CFLAGS += -DOLD_READLINE
33 LD_ADD += -L$(READLINE_LIBDIR) -L$(HISTORY_LIBDIR) -lreadline -lhistory $(LIBCURSES)
34 # use the following if your readline has no separate history lib
35 # LD_ADD += -L$(READLINE_LIBDIR) -lreadline $(LIBCURSES)
37 ifeq ($(PORTNAME), ultrix4)
40 ifeq ($(PORTNAME), sparc)
43 ifeq ($(PORTNAME), linux)
46 ifeq ($(PORTNAME), next)
48 ifeq ($(PORTNAME), bsdi)
50 ifeq ($(PORTNAME), bsdi_2_1)
58 CFLAGS += -DNOREADLINE
61 SRCS= psql.c stringutils.c
63 ifneq ($(USE_READLINE), true)
67 include $(MKDIR)/postgres.prog.mk