1996-07-09 08:22:35 +02:00
|
|
|
#
|
|
|
|
# Makefile for example programs
|
|
|
|
#
|
|
|
|
|
1996-11-12 12:43:32 +01:00
|
|
|
SRCDIR= ../..
|
|
|
|
include ../../Makefile.global
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1996-11-12 12:43:32 +01:00
|
|
|
CFLAGS+= -I$(LIBPQDIR)
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1996-11-12 12:43:32 +01:00
|
|
|
LD_ADD+= -L$(LIBPQDIR) -lpq
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# And where libpq goes, so goes the authentication stuff...
|
|
|
|
#
|
|
|
|
ifdef KRBVERS
|
|
|
|
LD_ADD+= $(KRBLIBS)
|
|
|
|
CFLAGS+= $(KRBFLAGS)
|
|
|
|
endif
|
|
|
|
|
1996-11-12 12:43:32 +01:00
|
|
|
PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 testlibpq4 testlo
|
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
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c $(LD_ADD)
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1996-11-12 12:43:32 +01:00
|
|
|
clean:
|
|
|
|
rm -f $(PROGS)
|