summaryrefslogtreecommitdiff
path: root/contrib/int8
diff options
context:
space:
mode:
authorMarc G. Fournier1998-04-22 04:16:46 +0000
committerMarc G. Fournier1998-04-22 04:16:46 +0000
commit5b4b3d563d0db16a00909a64090efa877593cffd (patch)
tree4bef5f89584c3ed96c1fcb47380a89db65154833 /contrib/int8
parent2201d48ccdf79314c3123febf11f5a5d39b7a0b4 (diff)
From: Jun Kuwamura <juk@rccm.co.jp>
This patch fix the Makefiles in contrib/{pginterface, spi, miscutil, int8, ip_and_mac, sequence, soundex, string, userlock, array, datetime} to install their modules in one directory(lib/modules/).
Diffstat (limited to 'contrib/int8')
-rw-r--r--contrib/int8/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/int8/Makefile b/contrib/int8/Makefile
index 13528fc185e..d5e093058aa 100644
--- a/contrib/int8/Makefile
+++ b/contrib/int8/Makefile
@@ -17,7 +17,7 @@
#-------------------------------------------------------------------------
ifndef PGDIR
-PGDIR= /opt/postgres/current
+PGDIR= ../..
endif
SRCDIR= $(PGDIR)/src
@@ -27,13 +27,13 @@ include $(SRCDIR)/Makefile.global
# Comment out this re-declaration of LIBDIR
# if you are installing as the postgres superuser
# into a specific database or into template1.
-LIBDIR= /home/tgl/lib
+#LIBDIR= /home/tgl/lib
CFLAGS+= -I$(PGDIR)/include -I$(PGDIR)/src/include -I$(LIBPQDIR)
# This extra library is for the 64-bit division routine on my Linux box
# and probably will need to be commented-out for most other platforms.
-CLIBS+= /usr/lib/gcc-lib/i486-linux/2.7.2/libgcc.a
+#CLIBS+= /usr/lib/gcc-lib/i486-linux/2.7.2/libgcc.a
TARGETS= int8.sql int8$(DLSUFFIX)
@@ -44,7 +44,7 @@ int8$(DLSUFFIX): int8.o
install:
$(MAKE) all
- cp -p int8$(DLSUFFIX) $(LIBDIR)
+ cp -p int8$(DLSUFFIX) $(LIBDIR)/modules
%.sql: %.source
if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \
@@ -53,7 +53,7 @@ install:
rm -f $@; \
C=`pwd`; \
O=$C; \
- if [ -d ${LIBDIR} ]; then O=${LIBDIR}; fi; \
+ if [ -d ${LIBDIR}/contrib ]; then O=${LIBDIR}/contrib; fi; \
sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$O:g" \
-e "s:_DLSUFFIX_:$(DLSUFFIX):g" \