aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/Makefile
blob: 885888a35e26f26481437bf5b6763777bdb84a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# Makefile for example programs
#

SRCDIR= ../..
include ../../Makefile.global

CFLAGS+= -I$(LIBPQDIR)

LD_ADD+= -L$(LIBPQDIR) -lpq 

#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LD_ADD+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif

PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 testlibpq4 testlo

all: $(PROGS)

$(PROGS): % : %.c 
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c $(LD_ADD)

clean: 
	rm -f $(PROGS)