1996-07-09 08:22:35 +02:00
|
|
|
#
|
|
|
|
# Makefile for example programs
|
|
|
|
#
|
|
|
|
|
2000-08-31 18:12:35 +02:00
|
|
|
subdir = src/test/examples
|
|
|
|
top_builddir = ../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2000-08-31 18:12:35 +02:00
|
|
|
CPPFLAGS+= -I$(libpq_srcdir)
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2000-08-31 18:12:35 +02:00
|
|
|
LDFLAGS+= $(libpq)
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
|
1997-09-25 18:35:52 +02:00
|
|
|
# PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 testlibpq4 testlo
|
|
|
|
PROGS = testlibpq testlibpq2 testlibpq3 testlibpq4 testlo testlo2
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1996-11-12 12:43:32 +01:00
|
|
|
all: $(PROGS)
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1996-11-12 12:43:32 +01:00
|
|
|
$(PROGS): % : %.c
|
1997-04-04 12:43:16 +02:00
|
|
|
$(CC) $(CFLAGS) -o $@ $@.c $(LDFLAGS)
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1996-11-12 12:43:32 +01:00
|
|
|
clean:
|
|
|
|
rm -f $(PROGS)
|