mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-09 08:23:23 +02:00
34 lines
500 B
Makefile
34 lines
500 B
Makefile
#
|
|
# Makefile for example programs
|
|
#
|
|
|
|
SRCDIR= ../..
|
|
include ../../Makefile.global
|
|
|
|
#
|
|
# And where libpq goes, so goes the authentication stuff...
|
|
#
|
|
ifdef KRBVERS
|
|
LDFLAGS+= $(KRBLIBS)
|
|
CFLAGS+= $(KRBFLAGS)
|
|
endif
|
|
|
|
PROGS = test-pgsql-locale test-ctype
|
|
DIRS = koi8-r
|
|
|
|
all: $(PROGS)
|
|
|
|
$(PROGS): % : %.c
|
|
$(CC) $(CFLAGS) -o $@ $@.c $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.out
|
|
for d in $(DIRS); do \
|
|
cd $$d; \
|
|
$(MAKE) clean; \
|
|
cd ..; \
|
|
done
|
|
|
|
test-%: all
|
|
@cd `echo $@ | sed 's/^test-//'` && $(MAKE) test
|