Assorted adjustments to prepare pg_filedump for its new life.
Add PostgreSQL Global Development Group to the copyright notices, and remove a couple of no-longer-appropriate references to Red Hat. Unfortunately I can't undo Red Hat's choice of GPL licensing, but it is what it is. Also reduce the pain of version-stamping by coalescing references to the version into one pair of macros, and removing not-especially-useful change logs. IMO the commit logs serve that purpose just as well.
This commit is contained in:
17
Makefile
17
Makefile
@ -3,13 +3,12 @@
|
||||
CC=gcc
|
||||
CFLAGS=-g -O -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
|
||||
INCLUDE=/usr/include/pgsql/server
|
||||
|
||||
# PGSQL MUST POINT TO pgsql SOURCE DIRECTORY
|
||||
PGSQL=../../../../postgres/pgsql
|
||||
PGSQL=../../pgsql
|
||||
|
||||
CRC_SRC=${PGSQL}/src/backend/utils/hash
|
||||
CRC_INCLUDE=${PGSQL}/src
|
||||
CRC_SRC_DIR=${PGSQL}/src/backend/utils/hash
|
||||
|
||||
INCLUDE_DIR=${PGSQL}/src/include
|
||||
|
||||
all: pg_filedump
|
||||
|
||||
@ -17,10 +16,10 @@ pg_filedump: pg_filedump.o pg_crc.o
|
||||
${CC} ${CFLAGS} -o pg_filedump pg_filedump.o pg_crc.o
|
||||
|
||||
pg_filedump.o: pg_filedump.c
|
||||
${CC} ${CFLAGS} -I${INCLUDE} pg_filedump.c -c
|
||||
${CC} ${CFLAGS} -I${INCLUDE_DIR} pg_filedump.c -c
|
||||
|
||||
pg_crc.o: ${CRC_SRC}/pg_crc.c
|
||||
${CC} ${CFLAGS} -I${CRC_INCLUDE} -I${INCLUDE} ${CRC_SRC}/pg_crc.c -c
|
||||
pg_crc.o: ${CRC_SRC_DIR}/pg_crc.c
|
||||
${CC} ${CFLAGS} -I${INCLUDE_DIR} ${CRC_SRC_DIR}/pg_crc.c -c
|
||||
|
||||
clean:
|
||||
rm -rf *.o pg_filedump
|
||||
rm -f *.o pg_filedump
|
||||
|
Reference in New Issue
Block a user