> 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
This commit is contained in:
parent
ff8e5526dd
commit
ee85595d46
@ -1,8 +1,4 @@
|
|||||||
|
|
||||||
subdir = contrib/btree_gist
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = btree_gist
|
MODULE_big = btree_gist
|
||||||
|
|
||||||
OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o btree_int4.o btree_int8.o \
|
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
|
|||||||
REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz time timetz \
|
REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz time timetz \
|
||||||
date interval macaddr inet cidr text varchar char bytea bit varbit numeric
|
date interval macaddr inet cidr text varchar char bytea bit varbit numeric
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/btree_gist
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.5 2003/11/29 19:51:19 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/chkpass/Makefile,v 1.6 2004/08/20 20:13:02 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/chkpass
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = chkpass
|
MODULE_big = chkpass
|
||||||
OBJS = chkpass.o
|
OBJS = chkpass.o
|
||||||
@ -10,4 +6,12 @@ SHLIB_LINK = $(filter -lcrypt, $(LIBS))
|
|||||||
DATA_built = chkpass.sql
|
DATA_built = chkpass.sql
|
||||||
DOCS = README.chkpass
|
DOCS = README.chkpass
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/chkpass
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.11 2003/11/29 19:51:21 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.12 2004/08/20 20:13:02 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/cube
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = cube
|
MODULE_big = cube
|
||||||
OBJS= cube.o cubeparse.o
|
OBJS= cube.o cubeparse.o
|
||||||
@ -11,6 +7,19 @@ DATA_built = cube.sql
|
|||||||
DOCS = README.cube
|
DOCS = README.cube
|
||||||
REGRESS = cube
|
REGRESS = cube
|
||||||
|
|
||||||
|
EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
|
||||||
|
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/cube
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# cubescan is compiled as part of cubeparse
|
# cubescan is compiled as part of cubeparse
|
||||||
cubeparse.o: cubescan.c
|
cubeparse.o: cubescan.c
|
||||||
@ -32,8 +41,3 @@ ifdef FLEX
|
|||||||
else
|
else
|
||||||
@$(missing) flex $< $@
|
@$(missing) flex $< $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
|
|
||||||
|
|
||||||
|
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/dbase/Makefile,v 1.5 2003/11/29 19:51:22 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/dbase/Makefile,v 1.6 2004/08/20 20:13:02 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/dbase
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PROGRAM = dbf2pg
|
PROGRAM = dbf2pg
|
||||||
OBJS = dbf.o dbf2pg.o endian.o
|
OBJS = dbf.o dbf2pg.o endian.o
|
||||||
@ -18,4 +14,13 @@ PG_LIBS = $(libpq)
|
|||||||
DOCS = README.dbf2pg
|
DOCS = README.dbf2pg
|
||||||
MAN = dbf2pg.1 # XXX not implemented
|
MAN = dbf2pg.1 # XXX not implemented
|
||||||
|
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/dbase
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.8 2003/11/29 19:51:34 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.9 2004/08/20 20:13:03 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/dblink
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = dblink
|
MODULE_big = dblink
|
||||||
PG_CPPFLAGS = -I$(libpq_srcdir)
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
||||||
@ -13,4 +9,13 @@ DATA_built = dblink.sql
|
|||||||
DOCS = README.dblink
|
DOCS = README.dblink
|
||||||
REGRESS = dblink
|
REGRESS = dblink
|
||||||
|
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/dblink
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/dbmirror/Makefile,v 1.2 2003/11/29 19:51:34 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/dbmirror/Makefile,v 1.3 2004/08/20 20:13:03 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/dbmirror
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = pending
|
MODULES = pending
|
||||||
DOCS = README.dbmirror
|
DOCS = README.dbmirror
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/dbmirror
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
subdir = contrib/dbsize
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = dbsize
|
MODULES = dbsize
|
||||||
DATA_built = dbsize.sql
|
DATA_built = dbsize.sql
|
||||||
DOCS = README.dbsize
|
DOCS = README.dbsize
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/dbsize
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.13 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.14 2004/08/20 20:13:03 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/earthdistance
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = earthdistance
|
MODULES = earthdistance
|
||||||
DATA_built = earthdistance.sql
|
DATA_built = earthdistance.sql
|
||||||
DOCS = README.earthdistance
|
DOCS = README.earthdistance
|
||||||
REGRESS = earthdistance
|
REGRESS = earthdistance
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/earthdistance
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/findoidjoins/Makefile,v 1.15 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/findoidjoins/Makefile,v 1.16 2004/08/20 20:13:03 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/findoidjoins
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PROGRAM = findoidjoins
|
PROGRAM = findoidjoins
|
||||||
OBJS = findoidjoins.o
|
OBJS = findoidjoins.o
|
||||||
@ -13,4 +9,12 @@ PG_LIBS = $(libpq)
|
|||||||
SCRIPTS = make_oidjoins_check
|
SCRIPTS = make_oidjoins_check
|
||||||
DOCS = README.findoidjoins
|
DOCS = README.findoidjoins
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/findoidjoins
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/fulltextindex/Makefile,v 1.12 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/fulltextindex/Makefile,v 1.13 2004/08/20 20:13:04 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/fulltextindex
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = fti
|
MODULES = fti
|
||||||
DATA_built = fti.sql
|
DATA_built = fti.sql
|
||||||
DOCS = README.fti
|
DOCS = README.fti
|
||||||
SCRIPTS = fti.pl
|
SCRIPTS = fti.pl
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/fulltextindex
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/fuzzystrmatch/Makefile,v 1.4 2004/07/01 03:25:48 joe Exp $
|
# $PostgreSQL: pgsql/contrib/fuzzystrmatch/Makefile,v 1.5 2004/08/20 20:13:04 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/fuzzystrmatch
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = fuzzystrmatch
|
MODULE_big = fuzzystrmatch
|
||||||
SRCS += fuzzystrmatch.c dmetaphone.c
|
SRCS += fuzzystrmatch.c dmetaphone.c
|
||||||
@ -10,4 +6,12 @@ OBJS = $(SRCS:.c=.o)
|
|||||||
DATA_built = fuzzystrmatch.sql
|
DATA_built = fuzzystrmatch.sql
|
||||||
DOCS = README.fuzzystrmatch README.soundex
|
DOCS = README.fuzzystrmatch README.soundex
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/fuzzystrmatch
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -2,14 +2,18 @@
|
|||||||
# Makefile for integer aggregator
|
# Makefile for integer aggregator
|
||||||
# Copyright (C) 2001 Digital Music Network.
|
# Copyright (C) 2001 Digital Music Network.
|
||||||
# by Mark L. Woodward
|
# by Mark L. Woodward
|
||||||
# $PostgreSQL: pgsql/contrib/intagg/Makefile,v 1.4 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/intagg/Makefile,v 1.5 2004/08/20 20:13:04 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/intagg
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = int_aggregate
|
MODULES = int_aggregate
|
||||||
DATA_built = int_aggregate.sql
|
DATA_built = int_aggregate.sql
|
||||||
DOCS = README.int_aggregate
|
DOCS = README.int_aggregate
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/intagg
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/intarray/Makefile,v 1.10 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/intarray/Makefile,v 1.11 2004/08/20 20:13:04 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/intarray
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = _int
|
MODULE_big = _int
|
||||||
OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o
|
OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o
|
||||||
@ -10,4 +6,12 @@ DATA_built = _int.sql
|
|||||||
DOCS = README.intarray
|
DOCS = README.intarray
|
||||||
REGRESS = _int
|
REGRESS = _int
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/intarray
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/isbn_issn/Makefile,v 1.12 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/isbn_issn/Makefile,v 1.13 2004/08/20 20:13:04 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/isbn_issn
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = isbn_issn
|
MODULES = isbn_issn
|
||||||
DATA_built = isbn_issn.sql
|
DATA_built = isbn_issn.sql
|
||||||
DOCS = README.isbn_issn
|
DOCS = README.isbn_issn
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/isbn_issn
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/lo/Makefile,v 1.12 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/lo/Makefile,v 1.13 2004/08/20 20:13:05 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/lo
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = lo
|
MODULES = lo
|
||||||
DATA_built = lo.sql
|
DATA_built = lo.sql
|
||||||
DATA = lo_drop.sql lo_test.sql
|
DATA = lo_drop.sql lo_test.sql
|
||||||
DOCS = README.lo
|
DOCS = README.lo
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/lo
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
subdir = contrib/ltree
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PG_CPPFLAGS = -DLOWER_NODE
|
PG_CPPFLAGS = -DLOWER_NODE
|
||||||
MODULE_big = ltree
|
MODULE_big = ltree
|
||||||
OBJS = ltree_io.o ltree_op.o lquery_op.o _ltree_op.o crc32.o \
|
OBJS = ltree_io.o ltree_op.o lquery_op.o _ltree_op.o crc32.o \
|
||||||
@ -10,4 +6,12 @@ DATA_built = ltree.sql
|
|||||||
DOCS = README.ltree
|
DOCS = README.ltree
|
||||||
REGRESS = ltree
|
REGRESS = ltree
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/ltree
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,19 +1,23 @@
|
|||||||
#
|
#
|
||||||
# $PostgreSQL: pgsql/contrib/mSQL-interface/Makefile,v 1.8 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/mSQL-interface/Makefile,v 1.9 2004/08/20 20:13:05 momjian Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
|
NAME = mpgsql
|
||||||
|
SO_MAJOR_VERSION = 0
|
||||||
|
SO_MINOR_VERSION = 0
|
||||||
|
OBJS = mpgsql.o
|
||||||
|
|
||||||
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
subdir = contrib/mSQL-interface
|
subdir = contrib/mSQL-interface
|
||||||
top_builddir = ../..
|
top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
NAME := mpgsql
|
endif
|
||||||
SO_MAJOR_VERSION := 0
|
|
||||||
SO_MINOR_VERSION := 0
|
|
||||||
OBJS := mpgsql.o
|
|
||||||
|
|
||||||
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
|
|
||||||
|
|
||||||
include $(top_srcdir)/src/Makefile.shlib
|
|
||||||
|
|
||||||
all: all-lib
|
all: all-lib
|
||||||
|
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/miscutil/Makefile,v 1.17 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/miscutil/Makefile,v 1.18 2004/08/20 20:13:05 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/miscutil
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = misc_utils
|
MODULES = misc_utils
|
||||||
DATA_built = misc_utils.sql
|
DATA_built = misc_utils.sql
|
||||||
DOCS = README.misc_utils
|
DOCS = README.misc_utils
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/miscutil
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/noupdate/Makefile,v 1.10 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/noupdate/Makefile,v 1.11 2004/08/20 20:13:05 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/noupdate
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = noup
|
MODULES = noup
|
||||||
DATA_built = noup.sql
|
DATA_built = noup.sql
|
||||||
DOCS = README.noup
|
DOCS = README.noup
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/noupdate
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/oid2name/Makefile,v 1.5 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/oid2name/Makefile,v 1.6 2004/08/20 20:13:05 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/oid2name
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PROGRAM = oid2name
|
PROGRAM = oid2name
|
||||||
OBJS = oid2name.o
|
OBJS = oid2name.o
|
||||||
@ -12,4 +8,12 @@ PG_LIBS = $(libpq)
|
|||||||
|
|
||||||
DOCS = README.oid2name
|
DOCS = README.oid2name
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/oid2name
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
|
|
||||||
subdir = contrib/pg_autovacuum
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PROGRAM = pg_autovacuum
|
PROGRAM = pg_autovacuum
|
||||||
OBJS = pg_autovacuum.o
|
OBJS = pg_autovacuum.o
|
||||||
|
|
||||||
@ -11,4 +6,12 @@ PG_LIBS = $(libpq)
|
|||||||
|
|
||||||
DOCS = README.pg_autovacuum
|
DOCS = README.pg_autovacuum
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/pg_autovacuum
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/pg_dumplo/Makefile,v 1.12 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/pg_dumplo/Makefile,v 1.13 2004/08/20 20:13:05 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/pg_dumplo
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PROGRAM = pg_dumplo
|
PROGRAM = pg_dumplo
|
||||||
OBJS = main.o lo_export.o lo_import.o utils.o
|
OBJS = main.o lo_export.o lo_import.o utils.o
|
||||||
@ -12,4 +8,12 @@ PG_LIBS = $(libpq)
|
|||||||
|
|
||||||
DOCS = README.pg_dumplo
|
DOCS = README.pg_dumplo
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/pg_dumplo
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/pg_logger/Makefile,v 1.3 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/pg_logger/Makefile,v 1.4 2004/08/20 20:13:06 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/pg_logger
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PROGRAM = pg_logger
|
PROGRAM = pg_logger
|
||||||
OBJS = pg_logger.o
|
OBJS = pg_logger.o
|
||||||
|
|
||||||
DOCS = README.pg_logger
|
DOCS = README.pg_logger
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/pg_logger
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
subdir = contrib/pg_trgm
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
|
PG_CPPFLAGS = -I.
|
||||||
override CPPFLAGS := -I. $(CPPFLAGS)
|
|
||||||
|
|
||||||
MODULE_big = pg_trgm
|
MODULE_big = pg_trgm
|
||||||
OBJS = trgm_op.o trgm_gist.o
|
OBJS = trgm_op.o trgm_gist.o
|
||||||
@ -12,6 +8,17 @@ DATA_built = pg_trgm.sql
|
|||||||
DOCS = README.pg_trgm
|
DOCS = README.pg_trgm
|
||||||
REGRESS = pg_trgm
|
REGRESS = pg_trgm
|
||||||
|
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/pg_trgm
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# DO NOT DELETE
|
# DO NOT DELETE
|
||||||
|
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/pgbench/Makefile,v 1.11 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/pgbench/Makefile,v 1.12 2004/08/20 20:13:06 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/pgbench
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PROGRAM = pgbench
|
PROGRAM = pgbench
|
||||||
OBJS = pgbench.o
|
OBJS = pgbench.o
|
||||||
@ -12,4 +8,12 @@ PG_LIBS = $(libpq)
|
|||||||
|
|
||||||
DOCS = README.pgbench README.pgbench_jis
|
DOCS = README.pgbench README.pgbench_jis
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/pgbench
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
#
|
#
|
||||||
# $PostgreSQL: pgsql/contrib/pgcrypto/Makefile,v 1.10 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/pgcrypto/Makefile,v 1.11 2004/08/20 20:13:06 momjian Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
subdir = contrib/pgcrypto
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
# either 'builtin', 'mhash', 'openssl'
|
# either 'builtin', 'mhash', 'openssl'
|
||||||
cryptolib = builtin
|
cryptolib = builtin
|
||||||
|
|
||||||
@ -60,25 +56,35 @@ ifeq ($(random), silly)
|
|||||||
CRYPTO_CFLAGS += -DRAND_SILLY
|
CRYPTO_CFLAGS += -DRAND_SILLY
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MODULE_big := pgcrypto
|
|
||||||
SRCS += pgcrypto.c px.c px-hmac.c px-crypt.c misc.c \
|
SRCS += pgcrypto.c px.c px-hmac.c px-crypt.c misc.c \
|
||||||
crypt-gensalt.c random.c
|
crypt-gensalt.c random.c
|
||||||
OBJS := $(SRCS:.c=.o)
|
|
||||||
DOCS := README.pgcrypto
|
|
||||||
DATA_built := pgcrypto.sql
|
|
||||||
EXTRA_CLEAN := gen-rtab
|
|
||||||
|
|
||||||
PG_CPPFLAGS := $(CRYPTO_CFLAGS) -I$(srcdir)
|
MODULE_big = pgcrypto
|
||||||
SHLIB_LINK := $(CRYPTO_LDFLAGS)
|
OBJS = $(SRCS:.c=.o)
|
||||||
|
DOCS = README.pgcrypto
|
||||||
|
DATA_built = pgcrypto.sql
|
||||||
|
EXTRA_CLEAN = gen-rtab
|
||||||
|
|
||||||
REGRESS := init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \
|
PG_CPPFLAGS = $(CRYPTO_CFLAGS) -I$(srcdir)
|
||||||
|
SHLIB_LINK = $(CRYPTO_LDFLAGS)
|
||||||
|
|
||||||
|
REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \
|
||||||
crypt-des crypt-md5 crypt-blowfish crypt-xdes
|
crypt-des crypt-md5 crypt-blowfish crypt-xdes
|
||||||
|
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/pgcrypto
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
rijndael.o: rijndael.tbl
|
rijndael.o: rijndael.tbl
|
||||||
|
|
||||||
rijndael.tbl:
|
rijndael.tbl:
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) -DPRINT_TABS rijndael.c -o gen-rtab
|
$(CC) $(CPPFLAGS) $(CFLAGS) -DPRINT_TABS rijndael.c -o gen-rtab
|
||||||
./gen-rtab > rijndael.tbl
|
./gen-rtab > rijndael.tbl
|
||||||
|
|
||||||
|
@ -2,21 +2,24 @@
|
|||||||
#
|
#
|
||||||
# pgstattuple Makefile
|
# pgstattuple Makefile
|
||||||
#
|
#
|
||||||
# $PostgreSQL: pgsql/contrib/pgstattuple/Makefile,v 1.2 2003/11/29 22:39:29 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/pgstattuple/Makefile,v 1.3 2004/08/20 20:13:07 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
SRCS = pgstattuple.c
|
||||||
|
|
||||||
|
MODULE_big = pgstattuple
|
||||||
|
OBJS = $(SRCS:.c=.o)
|
||||||
|
DOCS = README.pgstattuple README.pgstattuple.euc_jp
|
||||||
|
DATA_built = pgstattuple.sql
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
subdir = contrib/pgstattuple
|
subdir = contrib/pgstattuple
|
||||||
top_builddir = ../..
|
top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
MODULE_big := pgstattuple
|
|
||||||
SRCS += pgstattuple.c
|
|
||||||
OBJS := $(SRCS:.c=.o)
|
|
||||||
DOCS := README.pgstattuple README.pgstattuple.euc_jp
|
|
||||||
DATA_built := pgstattuple.sql
|
|
||||||
|
|
||||||
PG_CPPFLAGS :=
|
|
||||||
SHLIB_LINK :=
|
|
||||||
|
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
# Makefile for erServer demonstration implementation
|
# Makefile for erServer demonstration implementation
|
||||||
# (c) 2000 Vadim Mikheev, PostgreSQL Inc.
|
# (c) 2000 Vadim Mikheev, PostgreSQL Inc.
|
||||||
|
|
||||||
subdir = contrib/rserv
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
NAME = rserv
|
NAME = rserv
|
||||||
MODULES = rserv
|
MODULES = rserv
|
||||||
DATA = RServ.pm
|
DATA = RServ.pm
|
||||||
@ -18,6 +14,17 @@ SCRIPTS_built += PrepareSnapshot ApplySnapshot
|
|||||||
SCRIPTS_built += InitRservTest
|
SCRIPTS_built += InitRservTest
|
||||||
|
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/rserv
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
$(SQLS): %.sql: %.sql.in
|
$(SQLS): %.sql: %.sql.in
|
||||||
sed 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' $< >$@
|
sed 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' $< >$@
|
||||||
|
|
||||||
@ -27,5 +34,3 @@ $(SCRIPTS_built): %: %.in
|
|||||||
-e 's:@BINDIR@:$(bindir):g' \
|
-e 's:@BINDIR@:$(bindir):g' \
|
||||||
-e 's:@LIBDIR@:$(datadir)/contrib:g' $< >$@
|
-e 's:@LIBDIR@:$(datadir)/contrib:g' $< >$@
|
||||||
chmod a+x $@
|
chmod a+x $@
|
||||||
|
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/rtree_gist/Makefile,v 1.4 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/rtree_gist/Makefile,v 1.5 2004/08/20 20:13:07 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/rtree_gist
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = rtree_gist
|
MODULES = rtree_gist
|
||||||
DATA_built = rtree_gist.sql
|
DATA_built = rtree_gist.sql
|
||||||
DOCS = README.rtree_gist
|
DOCS = README.rtree_gist
|
||||||
REGRESS = rtree_gist
|
REGRESS = rtree_gist
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/rtree_gist
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.11 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.12 2004/08/20 20:13:07 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/seg
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = seg
|
MODULE_big = seg
|
||||||
OBJS = seg.o segparse.o
|
OBJS = seg.o segparse.o
|
||||||
@ -10,6 +6,17 @@ DATA_built = seg.sql
|
|||||||
DOCS = README.seg
|
DOCS = README.seg
|
||||||
REGRESS = seg
|
REGRESS = seg
|
||||||
|
|
||||||
|
EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/seg
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
# segscan is compiled as part of segparse
|
# segscan is compiled as part of segparse
|
||||||
segparse.o: segscan.c
|
segparse.o: segscan.c
|
||||||
@ -31,8 +38,3 @@ ifdef FLEX
|
|||||||
else
|
else
|
||||||
@$(missing) flex $< $@
|
@$(missing) flex $< $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h
|
|
||||||
|
|
||||||
|
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/spi/Makefile,v 1.23 2003/11/29 19:51:35 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/spi/Makefile,v 1.24 2004/08/20 20:13:08 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/spi
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = autoinc insert_username moddatetime refint timetravel
|
MODULES = autoinc insert_username moddatetime refint timetravel
|
||||||
DATA_built = $(addsuffix .sql, $(MODULES))
|
DATA_built = $(addsuffix .sql, $(MODULES))
|
||||||
@ -12,4 +8,12 @@ DOCS = README.spi $(addsuffix .example, $(MODULES))
|
|||||||
# comment out if you want a quieter refint package for other uses
|
# comment out if you want a quieter refint package for other uses
|
||||||
PG_CPPFLAGS = -DREFINT_VERBOSE
|
PG_CPPFLAGS = -DREFINT_VERBOSE
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/spi
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/string/Makefile,v 1.17 2003/11/29 19:51:36 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/string/Makefile,v 1.18 2004/08/20 20:13:08 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/string
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = string_io
|
MODULES = string_io
|
||||||
DATA_built = string_io.sql
|
DATA_built = string_io.sql
|
||||||
DOCS = README.string_io
|
DOCS = README.string_io
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/string
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
subdir = contrib/tablefunc
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = tablefunc
|
MODULES = tablefunc
|
||||||
DATA_built = tablefunc.sql
|
DATA_built = tablefunc.sql
|
||||||
DOCS = README.tablefunc
|
DOCS = README.tablefunc
|
||||||
REGRESS = tablefunc
|
REGRESS = tablefunc
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/tablefunc
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/tips/Makefile,v 1.6 2003/11/29 19:51:36 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/tips/Makefile,v 1.7 2004/08/20 20:13:08 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/tips
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
DOCS = README.apachelog
|
DOCS = README.apachelog
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/tips
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/tsearch/Makefile,v 1.4 2003/11/29 19:51:36 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/tsearch/Makefile,v 1.5 2004/08/20 20:13:08 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/tsearch
|
PG_CPPFLAGS = -I.
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
override CPPFLAGS := -I. $(CPPFLAGS)
|
|
||||||
|
|
||||||
MODULE_big = tsearch
|
MODULE_big = tsearch
|
||||||
OBJS = crc32.o morph.o txtidx.o query.o gistidx.o rewrite.o
|
OBJS = crc32.o morph.o txtidx.o query.o gistidx.o rewrite.o
|
||||||
@ -13,6 +9,19 @@ DATA_built = tsearch.sql
|
|||||||
DOCS = README.tsearch
|
DOCS = README.tsearch
|
||||||
REGRESS = tsearch
|
REGRESS = tsearch
|
||||||
|
|
||||||
|
EXTRA_CLEAN = parser.c
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/tsearch
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# parser is compiled as part of query
|
# parser is compiled as part of query
|
||||||
query.o: parser.c
|
query.o: parser.c
|
||||||
|
|
||||||
@ -23,7 +32,4 @@ else
|
|||||||
@$(missing) flex $< $@
|
@$(missing) flex $< $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EXTRA_CLEAN = parser.c
|
|
||||||
|
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
|
||||||
# DO NOT DELETE
|
# DO NOT DELETE
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.6 2003/11/29 19:51:36 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.7 2004/08/20 20:13:09 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/tsearch2
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
|
|
||||||
MODULE_big = tsearch2
|
MODULE_big = tsearch2
|
||||||
OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \
|
OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \
|
||||||
@ -15,12 +10,7 @@ OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \
|
|||||||
SUBDIRS := snowball ispell wordparser
|
SUBDIRS := snowball ispell wordparser
|
||||||
SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o)
|
SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o)
|
||||||
|
|
||||||
OBJS:= $(OBJS) $(SUBDIROBJS)
|
OBJS += $(SUBDIROBJS)
|
||||||
|
|
||||||
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
|
|
||||||
|
|
||||||
$(SUBDIRS:%=%-recursive):
|
|
||||||
$(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
|
|
||||||
|
|
||||||
PG_CPPFLAGS = -I$(srcdir)/snowball -I$(srcdir)/ispell -I$(srcdir)/wordparser
|
PG_CPPFLAGS = -I$(srcdir)/snowball -I$(srcdir)/ispell -I$(srcdir)/wordparser
|
||||||
|
|
||||||
@ -31,6 +21,23 @@ REGRESS = tsearch2
|
|||||||
|
|
||||||
SHLIB_LINK := -lm
|
SHLIB_LINK := -lm
|
||||||
|
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/tsearch2
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
|
||||||
|
|
||||||
|
$(SUBDIRS:%=%-recursive):
|
||||||
|
$(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
|
||||||
|
|
||||||
tsearch2.sql: tsearch.sql.in
|
tsearch2.sql: tsearch.sql.in
|
||||||
sed -e 's,MODULE_PATHNAME,$$libdir/$(MODULE_big),g' \
|
sed -e 's,MODULE_PATHNAME,$$libdir/$(MODULE_big),g' \
|
||||||
-e 's,DATA_PATH,$(datadir)/contrib,g' $< >$@
|
-e 's,DATA_PATH,$(datadir)/contrib,g' $< >$@
|
||||||
@ -43,5 +50,3 @@ clean: subclean
|
|||||||
|
|
||||||
subclean:
|
subclean:
|
||||||
for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean || exit; done
|
for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean || exit; done
|
||||||
|
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/userlock/Makefile,v 1.17 2003/11/29 19:51:36 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/userlock/Makefile,v 1.18 2004/08/20 20:13:09 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/userlock
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULES = user_locks
|
MODULES = user_locks
|
||||||
DATA_built = user_locks.sql
|
DATA_built = user_locks.sql
|
||||||
DOCS = README.user_locks
|
DOCS = README.user_locks
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/userlock
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $PostgreSQL: pgsql/contrib/vacuumlo/Makefile,v 1.12 2003/11/29 19:51:36 pgsql Exp $
|
# $PostgreSQL: pgsql/contrib/vacuumlo/Makefile,v 1.13 2004/08/20 20:13:10 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/vacuumlo
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
PROGRAM = vacuumlo
|
PROGRAM = vacuumlo
|
||||||
OBJS = vacuumlo.o
|
OBJS = vacuumlo.o
|
||||||
@ -12,4 +8,12 @@ PG_LIBS = $(libpq)
|
|||||||
|
|
||||||
DOCS = README.vacuumlo
|
DOCS = README.vacuumlo
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/vacuumlo
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
# $Header: /cvsroot/pgsql/contrib/xml/Attic/Makefile,v 1.8 2004/03/14 03:19:13 momjian Exp $
|
# $Header: /cvsroot/pgsql/contrib/xml/Attic/Makefile,v 1.9 2004/08/20 20:13:10 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/xml
|
|
||||||
top_builddir = ../..
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = pgxml_dom
|
MODULE_big = pgxml_dom
|
||||||
OBJS = pgxml_dom.o
|
OBJS = pgxml_dom.o
|
||||||
@ -10,4 +6,12 @@ SHLIB_LINK = -lxml2
|
|||||||
DATA_built = pgxml_dom.sql
|
DATA_built = pgxml_dom.sql
|
||||||
DOCS = README.xml
|
DOCS = README.xml
|
||||||
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/xml
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
# This makefile will build the new XML and XSLT routines.
|
# This makefile will build the new XML and XSLT routines.
|
||||||
subdir = contrib/xml2
|
|
||||||
top_builddir = ../../
|
|
||||||
include $(top_builddir)/src/Makefile.global
|
|
||||||
|
|
||||||
MODULE_big = pgxml
|
MODULE_big = pgxml
|
||||||
|
|
||||||
@ -14,5 +11,14 @@ SHLIB_LINK = -lxml2 -lxslt
|
|||||||
DATA_built = pgxml.sql
|
DATA_built = pgxml.sql
|
||||||
DOCS = README.xml2
|
DOCS = README.xml2
|
||||||
|
|
||||||
include $(top_builddir)contrib/contrib-global.mk
|
|
||||||
|
ifdef USE_PGXS
|
||||||
|
PGXS = $(shell pg_config --pgxs)
|
||||||
|
include $(PGXS)
|
||||||
|
else
|
||||||
|
subdir = contrib/xml2
|
||||||
|
top_builddir = ../..
|
||||||
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 1994, Regents of the University of California
|
# Copyright (c) 1994, Regents of the University of California
|
||||||
#
|
#
|
||||||
# $PostgreSQL: pgsql/src/Makefile,v 1.33 2004/07/30 12:26:40 petere Exp $
|
# $PostgreSQL: pgsql/src/Makefile,v 1.34 2004/08/20 20:13:10 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -35,6 +35,7 @@ install-local: installdirs-local
|
|||||||
|
|
||||||
install-all-headers:
|
install-all-headers:
|
||||||
$(MAKE) -C include $@
|
$(MAKE) -C include $@
|
||||||
|
$(MAKE) -C port $@
|
||||||
|
|
||||||
installdirs: installdirs-local
|
installdirs: installdirs-local
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -*-makefile-*-
|
# -*-makefile-*-
|
||||||
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.192 2004/08/15 00:41:51 momjian Exp $
|
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.193 2004/08/20 20:13:10 momjian Exp $
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# All PostgreSQL makefiles include this file and use the variables it sets,
|
# All PostgreSQL makefiles include this file and use the variables it sets,
|
||||||
@ -291,8 +291,15 @@ endif
|
|||||||
#
|
#
|
||||||
# Some variables needed to find some client interfaces
|
# Some variables needed to find some client interfaces
|
||||||
|
|
||||||
|
ifdef PGXS
|
||||||
|
# some contribs assumes headers and libs are in the source tree...
|
||||||
|
libpq_srcdir = $(includedir)
|
||||||
|
libpq_builddir = $(libdir)
|
||||||
|
else
|
||||||
libpq_srcdir = $(top_srcdir)/src/interfaces/libpq
|
libpq_srcdir = $(top_srcdir)/src/interfaces/libpq
|
||||||
libpq_builddir = $(top_builddir)/src/interfaces/libpq
|
libpq_builddir = $(top_builddir)/src/interfaces/libpq
|
||||||
|
endif
|
||||||
|
|
||||||
libpq = -L$(libpq_builddir) -lpq
|
libpq = -L$(libpq_builddir) -lpq
|
||||||
|
|
||||||
submake-libpq:
|
submake-libpq:
|
||||||
@ -351,8 +358,13 @@ LIBOBJS = @LIBOBJS@ dirmod.o exec.o noblock.o path.o pipe.o pgsleep.o pgstrcasec
|
|||||||
|
|
||||||
ifneq (,$(LIBOBJS))
|
ifneq (,$(LIBOBJS))
|
||||||
LIBS := -lpgport $(LIBS)
|
LIBS := -lpgport $(LIBS)
|
||||||
|
ifdef PGXS
|
||||||
|
# where libpgport.a is installed
|
||||||
|
LDFLAGS := -L$(pkglibdir) $(LDFLAGS)
|
||||||
|
else
|
||||||
LDFLAGS := -L$(top_builddir)/src/port $(LDFLAGS)
|
LDFLAGS := -L$(top_builddir)/src/port $(LDFLAGS)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# to make ws2_32.lib the last library
|
# to make ws2_32.lib the last library
|
||||||
ifeq ($(PORTNAME),win32)
|
ifeq ($(PORTNAME),win32)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# with broken/missing library files.
|
# with broken/missing library files.
|
||||||
|
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $PostgreSQL: pgsql/src/port/Makefile,v 1.16 2004/08/01 06:56:39 momjian Exp $
|
# $PostgreSQL: pgsql/src/port/Makefile,v 1.17 2004/08/20 20:13:10 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -20,6 +20,13 @@ LIBS += $(PTHREAD_LIBS)
|
|||||||
|
|
||||||
all: libpgport.a
|
all: libpgport.a
|
||||||
|
|
||||||
|
# libpgport is needed by some contrib
|
||||||
|
install-all-headers:
|
||||||
|
$(INSTALL_STLIB) libpgport.a $(DESTDIR)$(pkglibdir)
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
$(RM) $(DESTDIR)$(pkglibdir)/libpgport.a
|
||||||
|
|
||||||
libpgport.a: $(LIBOBJS)
|
libpgport.a: $(LIBOBJS)
|
||||||
$(AR) $(AROPT) $@ $^
|
$(AR) $(AROPT) $@ $^
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user