Updates for latest Postgres 9.2 sources.
We no longer need pg_crc.c, and hence not a source tree, yay.
This commit is contained in:
23
Makefile
23
Makefile
@ -1,32 +1,27 @@
|
||||
# View README.pg_filedump first
|
||||
|
||||
# note this must match macro in pg_filedump.h
|
||||
FD_VERSION=9.1.0
|
||||
# note this must match version macros in pg_filedump.h
|
||||
FD_VERSION=9.2.0
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-g -O -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
|
||||
# PGSQL MUST POINT TO pgsql SOURCE DIRECTORY
|
||||
PGSQL=../../pgsql
|
||||
# If working with a PG source directory, point PGSQL_INCLUDE_DIR to its
|
||||
# src/include subdirectory. If working with an installed tree, point to
|
||||
# the server include subdirectory, eg /usr/local/include/postgresql/server
|
||||
PGSQL_INCLUDE_DIR=../../pgsql/src/include
|
||||
|
||||
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
|
||||
${CC} ${CFLAGS} -o pg_filedump pg_filedump.o pg_crc.o
|
||||
pg_filedump: pg_filedump.o
|
||||
${CC} ${CFLAGS} -o pg_filedump pg_filedump.o
|
||||
|
||||
pg_filedump.o: pg_filedump.c
|
||||
${CC} ${CFLAGS} -I${INCLUDE_DIR} pg_filedump.c -c
|
||||
|
||||
pg_crc.o: ${CRC_SRC_DIR}/pg_crc.c
|
||||
${CC} ${CFLAGS} -I${INCLUDE_DIR} ${CRC_SRC_DIR}/pg_crc.c -c
|
||||
${CC} ${CFLAGS} -I${PGSQL_INCLUDE_DIR} pg_filedump.c -c
|
||||
|
||||
dist:
|
||||
rm -rf pg_filedump-${FD_VERSION} pg_filedump-${FD_VERSION}.tar.gz
|
||||
|
Reference in New Issue
Block a user