mirror of
https://github.com/postgres/postgres.git
synced 2025-12-24 06:01:07 +03:00
29 lines
932 B
Makefile
29 lines
932 B
Makefile
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/test/Makefile,v 1.39 2003/08/01 13:53:36 petere Exp $
|
|
|
|
subdir = src/interfaces/ecpg/test
|
|
top_builddir = ../../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
override CPPFLAGS := -I$(srcdir)/../include -I$(libpq_srcdir) $(CPPFLAGS)
|
|
|
|
ECPG = ../preproc/ecpg -I$(srcdir)/../include
|
|
|
|
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix
|
|
|
|
all: $(TESTS)
|
|
|
|
%: %.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lpq -o $@
|
|
|
|
test_informix: test_informix.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -L../compatlib -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lecpg_compat -lpq -o $@
|
|
|
|
%.c: %.pgc
|
|
$(ECPG) $<
|
|
|
|
test_informix.c: test_informix.pgc
|
|
$(ECPG) -C INFORMIX -r no_indicator $<
|
|
clean:
|
|
rm -f $(TESTS) $(TESTS:%=%.o) $(TESTS:%=%.c) log
|
|
|