Update for Postgres 9.1; add knowledge of some more flag bits;
improve Makefile to be able to build a release tarball.
This commit is contained in:
14
Makefile
14
Makefile
@ -1,5 +1,8 @@
|
||||
# View README.pg_filedump first
|
||||
|
||||
# note this must match macro in pg_filedump.h
|
||||
FD_VERSION=9.1.0
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-g -O -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
|
||||
@ -10,6 +13,10 @@ CRC_SRC_DIR=${PGSQL}/src/backend/utils/hash
|
||||
|
||||
INCLUDE_DIR=${PGSQL}/src/include
|
||||
|
||||
DISTFILES= README.pg_filedump Makefile Makefile.contrib \
|
||||
pg_filedump.h pg_filedump.c
|
||||
|
||||
|
||||
all: pg_filedump
|
||||
|
||||
pg_filedump: pg_filedump.o pg_crc.o
|
||||
@ -21,5 +28,12 @@ pg_filedump.o: pg_filedump.c
|
||||
pg_crc.o: ${CRC_SRC_DIR}/pg_crc.c
|
||||
${CC} ${CFLAGS} -I${INCLUDE_DIR} ${CRC_SRC_DIR}/pg_crc.c -c
|
||||
|
||||
dist:
|
||||
rm -rf pg_filedump-${FD_VERSION} pg_filedump-${FD_VERSION}.tar.gz
|
||||
mkdir pg_filedump-${FD_VERSION}
|
||||
cp -p ${DISTFILES} pg_filedump-${FD_VERSION}
|
||||
tar cfz pg_filedump-${FD_VERSION}.tar.gz pg_filedump-${FD_VERSION}
|
||||
rm -rf pg_filedump-${FD_VERSION}
|
||||
|
||||
clean:
|
||||
rm -f *.o pg_filedump
|
||||
|
Reference in New Issue
Block a user