mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 21:16:50 +02:00
34 lines
498 B
Makefile
34 lines
498 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
|