mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-08 20:39:43 +02:00
FreeBSD The Makefile(s) have all been cleaned up such that there is a single LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE. The Makefile(s) should be alot more straightforward then they were before...and consistent
29 lines
432 B
Makefile
29 lines
432 B
Makefile
#
|
|
# Makefile for example programs
|
|
#
|
|
|
|
SRCDIR= ../..
|
|
include ../../Makefile.global
|
|
|
|
CFLAGS+= -I$(LIBPQDIR)
|
|
|
|
LDFLAGS+= -L$(LIBPQDIR) -lpq
|
|
|
|
#
|
|
# And where libpq goes, so goes the authentication stuff...
|
|
#
|
|
ifdef KRBVERS
|
|
LDFLAGS+= $(KRBLIBS)
|
|
CFLAGS+= $(KRBFLAGS)
|
|
endif
|
|
|
|
PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 testlibpq4 testlo
|
|
|
|
all: $(PROGS)
|
|
|
|
$(PROGS): % : %.c
|
|
$(CC) $(CFLAGS) -o $@ $@.c $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(PROGS)
|