mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-15 07:53:23 +02:00
25 lines
476 B
Makefile
25 lines
476 B
Makefile
#
|
|
# Makefile
|
|
#
|
|
#
|
|
PGINTERFACE = pginterface.o halt.o
|
|
TARGET = pginsert pgwordcount pgnulltest
|
|
CFLAGS = -g -Wall -I/u/postgres95/include
|
|
LDFLAGS = -L/u/postgres95/lib -lpq
|
|
|
|
all : $(TARGET)
|
|
|
|
$(TARGET): $(PGINTERFACE) $*.c
|
|
cc -o $* $(CFLAGS) $*.c $(PGINTERFACE) $(LDFLAGS)
|
|
|
|
$(PGINTERFACE): pginterface.c halt.c
|
|
cc -c $(CFLAGS) pginterface.c halt.c
|
|
|
|
clean:
|
|
rm -f *.o $(TARGET) log core
|
|
|
|
install:
|
|
make clean
|
|
make CFLAGS=-O
|
|
install -s -o bin -g bin $(TARGET) /usr/local/bin
|