aboutsummaryrefslogtreecommitdiff
path: root/contrib/pginterface/Makefile
blob: 7759ef8d28f8f181e2499329c2c8e40fed302f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# Makefile
#
#
TARGET = pginsert
CFLAGS = -g -Wall -I/u/postgres95/include
LIBS = -L/u/postgres95/lib -lpq

$(TARGET) : pginsert.o pginterface.o halt.o
	$(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) \
		 pginsert.o pginterface.o halt.o $(LIBS)

clean:
	rm -f *.o $(TARGET) log core

install:
	make clean
	make CFLAGS=-O
	install -s -o bin -g bin $(TARGET) /usr/local/bin