Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcb31156

Browse files
committed
Have Makefile autoconf'd according to whether the system has
readline and associated libraries...
1 parentd22b65d commitcb31156

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

‎src/bin/psql/Makefile.in

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#-------------------------------------------------------------------------
2+
#
3+
# Makefile.inc--
4+
# Makefile for bin/psql
5+
#
6+
# Copyright (c) 1994, Regents of the University of California
7+
#
8+
#
9+
# IDENTIFICATION
10+
# $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.1 1997/01/24 02:35:27 scrappy Exp $
11+
#
12+
#-------------------------------------------------------------------------
13+
14+
SRCDIR= ../..
15+
include ../../Makefile.global
16+
17+
INCLUDE_OPT:= -I$(LIBPQDIR)\
18+
-I../../include
19+
20+
CFLAGS+=$(INCLUDE_OPT)
21+
22+
LD_ADD+= @READLINE_LIB@ @HISTORY_LIB@ @CURSES_LIB@ @TERMCAP_LIB@
23+
24+
OBJS= psql.o stringutils.o
25+
26+
ifneq ($(USE_READLINE), true)
27+
OBJS+= rlstubs.o
28+
endif
29+
30+
ifeq ($(PORTNAME), ultrix4)
31+
OBJS+= ../../utils/strdup.o
32+
endif
33+
34+
all: submake psql
35+
36+
psql:$(OBJS)$(LIBPQDIR)/libpq.a
37+
$(CC)$(LDFLAGS) -o psql -L$(LIBPQDIR)$(OBJS) -lpq$(LD_ADD)
38+
39+
../../utils/strdup.o:
40+
$(MAKE) -C ../../utils strdup.o
41+
42+
.PHONY: submake
43+
submake:
44+
$(MAKE) -C$(LIBPQDIR) libpq.a
45+
46+
install: psql
47+
$(INSTALL)$(INSTL_EXE_OPTS) psql$(DESTDIR)$(BINDIR)/psql
48+
49+
dependdep:
50+
$(CC) -MM$(INCLUDE_OPT)*.c>depend
51+
52+
clean:
53+
rm -f psql$(OBJS)
54+
55+
ifeq (depend,$(wildcard depend))
56+
include depend
57+
endif
58+
59+
60+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp