1996-09-20 04:19:05 +08:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
#
|
|
|
|
#
|
|
|
|
PGINTERFACE = pginterface.o halt.o
|
|
|
|
TARGET = pginsert pgwordcount pgnulltest
|
1998-04-24 01:25:29 +08:00
|
|
|
CFLAGS = -g -Wall -I. -I../../src/interfaces/libpq -I/usr/local/pgsql/include
|
1998-03-15 05:58:09 +08:00
|
|
|
LDFLAGS = -L/usr/local/pgsql/lib -lpq
|
1996-09-20 04:19:05 +08:00
|
|
|
|
|
|
|
all : $(TARGET)
|
|
|
|
|
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/).
1998-04-22 12:16:46 +08:00
|
|
|
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
|
1996-09-20 04:19:05 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o $(TARGET) log core
|
|
|
|
|
|
|
|
install:
|
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/).
1998-04-22 12:16:46 +08:00
|
|
|
install -s -o bin -g bin $(TARGET) /usr/local/pgsql/bin
|
|
|
|
|