mirror of https://github.com/postgres/postgres
longer in expected location).REL7_0_PATCHES
parent
fa5400c0a4
commit
78845177bb
@ -1,20 +1,23 @@ |
|||||||
#
|
#
|
||||||
# Makefile, requires pgsql/contrib/pginterface
|
# Makefile, requires src/interfaces/libpgeasy
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
PGINTERFACE = ../pginterface/pginterface.o ../pginterface/halt.o # these have to be in your library search path
|
INSTALLDIR = /usr/local/pgsql
|
||||||
|
|
||||||
TARGET = findoidjoins
|
TARGET = findoidjoins
|
||||||
CFLAGS = -g -Wall -I. -I../pginterface -I../../src/interfaces/libpq -I/usr/local/pgsql/include
|
PGEASY = ../../src/interfaces/libpgeasy
|
||||||
LDFLAGS = -L/usr/local/pgsql/lib -lpq
|
CFLAGS = -g -Wall -I. -I$(PGEASY) -I$(INSTALLDIR)/include
|
||||||
|
LIBPGEASY = $(PGEASY)/libpgeasy.a
|
||||||
|
LDFLAGS = -L$(INSTALLDIR)/lib -lpq
|
||||||
|
|
||||||
all : $(TARGET) |
all : $(TARGET) |
||||||
|
|
||||||
findoidjoins: $(PGINTERFACE) findoidjoins.c |
findoidjoins: findoidjoins.c $(LIBPGEASY) |
||||||
gcc -o $@ $(CFLAGS) $@.c $(PGINTERFACE) $(LDFLAGS)
|
gcc -o $@ $(CFLAGS) $^ $(LDFLAGS)
|
||||||
|
|
||||||
clean: |
clean: |
||||||
rm -f *.o $(TARGET) log core
|
rm -f *.o $(TARGET) log core
|
||||||
|
|
||||||
install: |
install: |
||||||
install -s -o bin -g bin $(TARGET) /usr/local/pgsql/bin
|
install -s -o bin -g bin $(TARGET) $(INSTALLDIR)/bin
|
||||||
|
|
||||||
|
Loading…
Reference in new issue