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

Commitee85595

Browse files
committed
> Please find enclose a submission to fix these problems.
>> The patch adds missing the "libpgport.a" file to the installation under> "install-all-headers". It is needed by some contribs. I install the> library in "pkglibdir", but I was wondering whether it should be "libdir"?> I was wondering also whether it would make sense to have a "libpgport.so"?>> It fixes various macros which are used by contrib makefiles, especially> libpq_*dir and LDFLAGS when used under PGXS. It seems to me that they are> needed to>> It adds the ability to test and use PGXS with contribs, with "make> USE_PGXS=1". Without the macro, this is exactly as before, there should be> no difference, esp. wrt the vpath feature that seemed broken by previous> submission. So it should not harm anybody, and it is useful at least to me.>> It fixes some inconsistencies in various contrib makefiles> (useless override, ":=" instead of "=").Fabien COELHO
1 parentff8e552 commitee85595

File tree

43 files changed

+430
-241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+430
-241
lines changed

‎contrib/btree_gist/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11

2-
subdir = contrib/btree_gist
3-
top_builddir = ../..
4-
include$(top_builddir)/src/Makefile.global
5-
62
MODULE_big = btree_gist
73

84
OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o btree_int4.o btree_int8.o\
@@ -16,4 +12,12 @@ DOCS = README.btree_gist
1612
REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz time timetz\
1713
date interval macaddr inet cidr text varchar char bytea bit varbit numeric
1814

15+
ifdefUSE_PGXS
16+
PGXS =$(shell pg_config --pgxs)
17+
include$(PGXS)
18+
else
19+
subdir = contrib/btree_gist
20+
top_builddir = ../..
21+
include$(top_builddir)/src/Makefile.global
1922
include$(top_srcdir)/contrib/contrib-global.mk
23+
endif

‎contrib/chkpass/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
# $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.5 2003/11/29 19:51:19 pgsql Exp $
2-
3-
subdir = contrib/chkpass
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.6 2004/08/20 20:13:02 momjian Exp $
62

73
MODULE_big = chkpass
84
OBJS = chkpass.o
95
SHLIB_LINK =$(filter -lcrypt,$(LIBS))
106
DATA_built = chkpass.sql
117
DOCS = README.chkpass
128

9+
ifdefUSE_PGXS
10+
PGXS =$(shell pg_config --pgxs)
11+
include$(PGXS)
12+
else
13+
subdir = contrib/chkpass
14+
top_builddir = ../..
15+
include$(top_builddir)/src/Makefile.global
1316
include$(top_srcdir)/contrib/contrib-global.mk
17+
endif

‎contrib/cube/Makefile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.11 2003/11/29 19:51:21 pgsql Exp $
2-
3-
subdir = contrib/cube
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.12 2004/08/20 20:13:02 momjian Exp $
62

73
MODULE_big = cube
84
OBJS= cube.o cubeparse.o
@@ -11,6 +7,19 @@ DATA_built = cube.sql
117
DOCS = README.cube
128
REGRESS = cube
139

10+
EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
11+
12+
13+
ifdefUSE_PGXS
14+
PGXS =$(shell pg_config --pgxs)
15+
include$(PGXS)
16+
else
17+
subdir = contrib/cube
18+
top_builddir = ../..
19+
include$(top_builddir)/src/Makefile.global
20+
include$(top_srcdir)/contrib/contrib-global.mk
21+
endif
22+
1423

1524
# cubescan is compiled as part of cubeparse
1625
cubeparse.o: cubescan.c
@@ -32,8 +41,3 @@ ifdef FLEX
3241
else
3342
@$(missing) flex $< $@
3443
endif
35-
36-
EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
37-
38-
39-
include$(top_srcdir)/contrib/contrib-global.mk

‎contrib/dbase/Makefile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/dbase/Makefile,v 1.5 2003/11/29 19:51:22 pgsql Exp $
2-
3-
subdir = contrib/dbase
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/dbase/Makefile,v 1.6 2004/08/20 20:13:02 momjian Exp $
62

73
PROGRAM = dbf2pg
84
OBJS= dbf.o dbf2pg.o endian.o
@@ -18,4 +14,13 @@ PG_LIBS = $(libpq)
1814
DOCS = README.dbf2pg
1915
MAN = dbf2pg.1# XXX not implemented
2016

17+
18+
ifdefUSE_PGXS
19+
PGXS =$(shell pg_config --pgxs)
20+
include$(PGXS)
21+
else
22+
subdir = contrib/dbase
23+
top_builddir = ../..
24+
include$(top_builddir)/src/Makefile.global
2125
include$(top_srcdir)/contrib/contrib-global.mk
26+
endif

‎contrib/dblink/Makefile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.8 2003/11/29 19:51:34 pgsql Exp $
2-
3-
subdir = contrib/dblink
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.9 2004/08/20 20:13:03 momjian Exp $
62

73
MODULE_big = dblink
84
PG_CPPFLAGS = -I$(libpq_srcdir)
@@ -13,4 +9,13 @@ DATA_built = dblink.sql
139
DOCS = README.dblink
1410
REGRESS = dblink
1511

12+
13+
ifdefUSE_PGXS
14+
PGXS =$(shell pg_config --pgxs)
15+
include$(PGXS)
16+
else
17+
subdir = contrib/dblink
18+
top_builddir = ../..
19+
include$(top_builddir)/src/Makefile.global
1620
include$(top_srcdir)/contrib/contrib-global.mk
21+
endif

‎contrib/dbmirror/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# $PostgreSQL: pgsql/contrib/dbmirror/Makefile,v 1.2 2003/11/29 19:51:34 pgsql Exp $
2-
3-
subdir = contrib/dbmirror
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/dbmirror/Makefile,v 1.3 2004/08/20 20:13:03 momjian Exp $
62

73
MODULES = pending
84
DOCS = README.dbmirror
95

6+
ifdefUSE_PGXS
7+
PGXS =$(shell pg_config --pgxs)
8+
include$(PGXS)
9+
else
10+
subdir = contrib/dbmirror
11+
top_builddir = ../..
12+
include$(top_builddir)/src/Makefile.global
1013
include$(top_srcdir)/contrib/contrib-global.mk
14+
endif

‎contrib/dbsize/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
subdir = contrib/dbsize
2-
top_builddir = ../..
3-
include$(top_builddir)/src/Makefile.global
4-
51
MODULES = dbsize
62
DATA_built = dbsize.sql
73
DOCS = README.dbsize
84

5+
ifdefUSE_PGXS
6+
PGXS =$(shell pg_config --pgxs)
7+
include$(PGXS)
8+
else
9+
subdir = contrib/dbsize
10+
top_builddir = ../..
11+
include$(top_builddir)/src/Makefile.global
912
include$(top_srcdir)/contrib/contrib-global.mk
13+
endif

‎contrib/earthdistance/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.13 2003/11/29 19:51:35 pgsql Exp $
2-
3-
subdir = contrib/earthdistance
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.14 2004/08/20 20:13:03 momjian Exp $
62

73
MODULES = earthdistance
84
DATA_built = earthdistance.sql
95
DOCS = README.earthdistance
106
REGRESS = earthdistance
117

8+
ifdefUSE_PGXS
9+
PGXS =$(shell pg_config --pgxs)
10+
include$(PGXS)
11+
else
12+
subdir = contrib/earthdistance
13+
top_builddir = ../..
14+
include$(top_builddir)/src/Makefile.global
1215
include$(top_srcdir)/contrib/contrib-global.mk
16+
endif

‎contrib/findoidjoins/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/findoidjoins/Makefile,v 1.15 2003/11/29 19:51:35 pgsql Exp $
2-
3-
subdir = contrib/findoidjoins
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/findoidjoins/Makefile,v 1.16 2004/08/20 20:13:03 momjian Exp $
62

73
PROGRAM = findoidjoins
84
OBJS= findoidjoins.o
@@ -13,4 +9,12 @@ PG_LIBS = $(libpq)
139
SCRIPTS = make_oidjoins_check
1410
DOCS = README.findoidjoins
1511

12+
ifdefUSE_PGXS
13+
PGXS =$(shell pg_config --pgxs)
14+
include$(PGXS)
15+
else
16+
subdir = contrib/findoidjoins
17+
top_builddir = ../..
18+
include$(top_builddir)/src/Makefile.global
1619
include$(top_srcdir)/contrib/contrib-global.mk
20+
endif

‎contrib/fulltextindex/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
# $PostgreSQL: pgsql/contrib/fulltextindex/Makefile,v 1.12 2003/11/29 19:51:35 pgsql Exp $
2-
3-
subdir = contrib/fulltextindex
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/fulltextindex/Makefile,v 1.13 2004/08/20 20:13:04 momjian Exp $
62

73
MODULES = fti
84
DATA_built = fti.sql
95
DOCS = README.fti
106
SCRIPTS = fti.pl
117

8+
ifdefUSE_PGXS
9+
PGXS =$(shell pg_config --pgxs)
10+
include$(PGXS)
11+
else
12+
subdir = contrib/fulltextindex
13+
top_builddir = ../..
14+
include$(top_builddir)/src/Makefile.global
1215
include$(top_srcdir)/contrib/contrib-global.mk
16+
endif

‎contrib/fuzzystrmatch/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
# $PostgreSQL: pgsql/contrib/fuzzystrmatch/Makefile,v 1.4 2004/07/01 03:25:48 joe Exp $
2-
3-
subdir = contrib/fuzzystrmatch
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/fuzzystrmatch/Makefile,v 1.5 2004/08/20 20:13:04 momjian Exp $
62

73
MODULE_big = fuzzystrmatch
84
SRCS += fuzzystrmatch.c dmetaphone.c
95
OBJS =$(SRCS:.c=.o)
106
DATA_built = fuzzystrmatch.sql
117
DOCS = README.fuzzystrmatch README.soundex
128

9+
ifdefUSE_PGXS
10+
PGXS =$(shell pg_config --pgxs)
11+
include$(PGXS)
12+
else
13+
subdir = contrib/fuzzystrmatch
14+
top_builddir = ../..
15+
include$(top_builddir)/src/Makefile.global
1316
include$(top_srcdir)/contrib/contrib-global.mk
17+
endif

‎contrib/intagg/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
# Makefile for integer aggregator
33
# Copyright (C) 2001 Digital Music Network.
44
# by Mark L. Woodward
5-
# $PostgreSQL: pgsql/contrib/intagg/Makefile,v 1.4 2003/11/29 19:51:35 pgsql Exp $
6-
7-
subdir = contrib/intagg
8-
top_builddir = ../..
9-
include$(top_builddir)/src/Makefile.global
5+
# $PostgreSQL: pgsql/contrib/intagg/Makefile,v 1.5 2004/08/20 20:13:04 momjian Exp $
106

117
MODULES = int_aggregate
128
DATA_built = int_aggregate.sql
139
DOCS = README.int_aggregate
1410

11+
ifdefUSE_PGXS
12+
PGXS =$(shell pg_config --pgxs)
13+
include$(PGXS)
14+
else
15+
subdir = contrib/intagg
16+
top_builddir = ../..
17+
include$(top_builddir)/src/Makefile.global
1518
include$(top_srcdir)/contrib/contrib-global.mk
19+
endif

‎contrib/intarray/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
# $PostgreSQL: pgsql/contrib/intarray/Makefile,v 1.10 2003/11/29 19:51:35 pgsql Exp $
2-
3-
subdir = contrib/intarray
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/intarray/Makefile,v 1.11 2004/08/20 20:13:04 momjian Exp $
62

73
MODULE_big = _int
84
OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o
95
DATA_built = _int.sql
106
DOCS = README.intarray
117
REGRESS = _int
128

9+
ifdefUSE_PGXS
10+
PGXS =$(shell pg_config --pgxs)
11+
include$(PGXS)
12+
else
13+
subdir = contrib/intarray
14+
top_builddir = ../..
15+
include$(top_builddir)/src/Makefile.global
1316
include$(top_srcdir)/contrib/contrib-global.mk
17+
endif

‎contrib/isbn_issn/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# $PostgreSQL: pgsql/contrib/isbn_issn/Makefile,v 1.12 2003/11/29 19:51:35 pgsql Exp $
2-
3-
subdir = contrib/isbn_issn
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/isbn_issn/Makefile,v 1.13 2004/08/20 20:13:04 momjian Exp $
62

73
MODULES = isbn_issn
84
DATA_built = isbn_issn.sql
95
DOCS = README.isbn_issn
106

7+
ifdefUSE_PGXS
8+
PGXS =$(shell pg_config --pgxs)
9+
include$(PGXS)
10+
else
11+
subdir = contrib/isbn_issn
12+
top_builddir = ../..
13+
include$(top_builddir)/src/Makefile.global
1114
include$(top_srcdir)/contrib/contrib-global.mk
15+
endif

‎contrib/lo/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
# $PostgreSQL: pgsql/contrib/lo/Makefile,v 1.12 2003/11/29 19:51:35 pgsql Exp $
2-
3-
subdir = contrib/lo
4-
top_builddir = ../..
5-
include$(top_builddir)/src/Makefile.global
1+
# $PostgreSQL: pgsql/contrib/lo/Makefile,v 1.13 2004/08/20 20:13:05 momjian Exp $
62

73
MODULES = lo
84
DATA_built = lo.sql
95
DATA = lo_drop.sql lo_test.sql
106
DOCS = README.lo
117

8+
ifdefUSE_PGXS
9+
PGXS =$(shell pg_config --pgxs)
10+
include$(PGXS)
11+
else
12+
subdir = contrib/lo
13+
top_builddir = ../..
14+
include$(top_builddir)/src/Makefile.global
1215
include$(top_srcdir)/contrib/contrib-global.mk
16+
endif

‎contrib/ltree/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
subdir = contrib/ltree
2-
top_builddir = ../..
3-
include$(top_builddir)/src/Makefile.global
4-
51
PG_CPPFLAGS = -DLOWER_NODE
62
MODULE_big = ltree
73
OBJS = ltree_io.o ltree_op.o lquery_op.o _ltree_op.o crc32.o\
@@ -10,4 +6,12 @@ DATA_built = ltree.sql
106
DOCS = README.ltree
117
REGRESS = ltree
128

9+
ifdefUSE_PGXS
10+
PGXS =$(shell pg_config --pgxs)
11+
include$(PGXS)
12+
else
13+
subdir = contrib/ltree
14+
top_builddir = ../..
15+
include$(top_builddir)/src/Makefile.global
1316
include$(top_srcdir)/contrib/contrib-global.mk
17+
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp