mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-05 15:46:59 +02:00
5b4b3d563d
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/).
33 lines
720 B
Makefile
33 lines
720 B
Makefile
#
|
|
# Makefile
|
|
#
|
|
#
|
|
PGINTERFACE = pginterface.o halt.o
|
|
TARGET = pginsert pgwordcount pgnulltest
|
|
CFLAGS = -g -fpic -Wall -I. -I../../src/interfaces/libpq -I/usr/local/pgsql/include
|
|
LDFLAGS = -L/usr/local/pgsql/lib -lpq
|
|
|
|
all : $(TARGET)
|
|
|
|
pginsert: $(PGINTERFACE) pginsert.c
|
|
gcc -o $@ $(CFLAGS) $@.c $(PGINTERFACE) $(LDFLAGS)
|
|
|
|
pgwordcount: $(PGINTERFACE) pgwordcount.c
|
|
gcc -o $@ $(CFLAGS) $@.c $(PGINTERFACE) $(LDFLAGS)
|
|
|
|
pgnulltest: $(PGINTERFACE) pgnulltest.c
|
|
gcc -o $@ $(CFLAGS) $@.c $(PGINTERFACE) $(LDFLAGS)
|
|
|
|
pginterface.o: pginterface.c
|
|
gcc -c $(CFLAGS) pginterface.c
|
|
|
|
halt.o: halt.c
|
|
gcc -c $(CFLAGS) halt.c
|
|
|
|
clean:
|
|
rm -f *.o $(TARGET) log core
|
|
|
|
install:
|
|
install -s -o bin -g bin $(TARGET) /usr/local/pgsql/bin
|
|
|