postgresql/src/interfaces/ecpg/test/Makefile

30 lines
777 B
Makefile
Raw Normal View History

2000-01-27 20:01:35 +01:00
all: stp.so test1 test2 test3 test4 test5 perftest
1999-12-16 07:53:12 +01:00
#LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq -lcrypt
2000-02-16 12:52:25 +01:00
#LDFLAGS=-g -I../include -I/usr/include/postgresql -L/usr/lib/postgresql -L../lib -lecpg -lpq -lcrypt
LDFLAGS=-g -I/usr/include/postgresql -lecpg -lpq -lcrypt
1999-12-16 07:53:12 +01:00
#ECPG=/usr/local/pgsql/bin/ecpg
2000-02-15 20:23:20 +01:00
ECPG=../preproc/ecpg -I../include
#ECPG=/usr/bin/ecpg -I/usr/include/postgresql
1999-11-02 13:11:53 +01:00
.SUFFIXES: .pgc .c
1999-11-02 13:11:53 +01:00
test1: test1.c
test2: test2.c
1999-03-05 10:38:51 +01:00
test3: test3.c
1999-11-02 13:11:53 +01:00
test4: test4.c
2000-01-27 20:01:35 +01:00
test5: test5.c
perftest: perftest.c
1999-11-02 13:11:53 +01:00
.pgc.c:
1999-12-16 07:53:12 +01:00
$(ECPG) $?
2000-01-27 20:01:35 +01:00
stp.so: stp.c
cc -fPIC -I../include -I/usr/include/postgresql -c -o stp.o stp.c
2000-02-15 20:23:20 +01:00
ld -Bdynamic -shared -soname stp.so -o stp.so stp.o -lpq -lecpg -lc
2000-01-27 20:01:35 +01:00
clean:
2000-01-27 20:01:35 +01:00
-/bin/rm test1 test2 test3 test4 test5 perftest *.c log stp.o stp.so