Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
31e8156f
Commit
31e8156f
authored
Nov 02, 1996
by
Bryan Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Continuation of make file simplification; handle libpq.a dependancy.
parent
c5c8983e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
13 deletions
+29
-13
src/bin/psql/Makefile
src/bin/psql/Makefile
+29
-13
No files found.
src/bin/psql/Makefile
View file @
31e8156f
...
@@ -7,16 +7,19 @@
...
@@ -7,16 +7,19 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.
7 1996/11/01 01:46:55 momjian
Exp $
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.
8 1996/11/02 09:53:15 bryanh
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
PROG
=
psql
SRCDIR
=
../..
LIBPQDIR
=
$(SRCDIR)
/libpq
include
../../Makefile.global
MKDIR
=
../../mk
INCLUDE_OPT
:=
\
include
$(MKDIR)/postgres.mk
-I
$(LIBPQDIR)
\
include
../Makefile.global
-I
$(SRCDIR)
/include
CFLAGS
+=
$(INCLUDE_OPT)
#
#
#USE_READLINE is set in Makefile.global
#USE_READLINE is set in Makefile.global
#
#
...
@@ -24,11 +27,6 @@ include ../Makefile.global
...
@@ -24,11 +27,6 @@ include ../Makefile.global
ifeq
($(USE_READLINE), true)
ifeq
($(USE_READLINE), true)
CFLAGS
+=
$(READLINE_INC)
$(HISTORY_INC)
CFLAGS
+=
$(READLINE_INC)
$(HISTORY_INC)
# if you are using an older readline that uses #include "readline.h" instead
# of #include <readline/readline.h>,
# uncomment this
# CFLAGS += -DOLD_READLINE
LIBCURSES
=
-lcurses
LIBCURSES
=
-lcurses
LD_ADD
+=
$(READLINE_LIB)
$(HISTORY_LIB)
$(LIBCURSES)
LD_ADD
+=
$(READLINE_LIB)
$(HISTORY_LIB)
$(LIBCURSES)
...
@@ -59,14 +57,32 @@ else
...
@@ -59,14 +57,32 @@ else
CFLAGS
+=
-DNOREADLINE
CFLAGS
+=
-DNOREADLINE
endif
endif
SRCS
=
psql.c stringutils.c
OBJS
=
psql.o stringutils.o
ifneq
($(USE_READLINE), true)
ifneq
($(USE_READLINE), true)
SRCS
+=
rlstubs.c
OBJS
+=
rlstubs.o
endif
endif
include
$(MKDIR)/postgres.prog.mk
all
:
psql
psql
:
$(OBJS) $(LIBPQDIR)/libpq.a
$(CC)
$(LDFLAGS)
-o
psql
-L
$(LIBPQDIR)
$(OBJS)
-lpq
$(LD_ADD)
$(srcdir)/libpq/libpq.a
:
$(MAKE)
-C
$(LIBPQDIR)
libpq.a
install
:
$(INSTALL)
$(INSTL_EXE_OPTS)
psql
$(DESTDIR)$(BINDIR)
/psql
depend dep
:
$(CC)
-MM
$(INCLUDE_OPT)
*
.c
>
depend
clean
:
rm
-f
psql
$(OBJS)
ifeq
(depend,$(wildcard depend))
include
depend
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment