Fix inadequate makefile-fu in ecpg regression tests. I think this

will fix current platypus build failure.
This commit is contained in:
Tom Lane 2006-08-09 22:48:17 +00:00
parent 6a7d3d093e
commit 0bf9d3a59e
1 changed files with 5 additions and 4 deletions

View File

@ -1,12 +1,13 @@
override CPPFLAGS := -I$(srcdir)/../../include -I$(libpq_srcdir) $(CPPFLAGS)
override CFLAGS += $(PTHREAD_CFLAGS) -I$(srcdir)/../../include -I$(libpq_srcdir) -I../../include -I$(top_builddir)/src/include
override LDFLAGS += -L../../ecpglib -L../../pgtypeslib -L../../../libpq
override LIBS += -lpgtypes -lecpg -lpq
override CFLAGS += $(PTHREAD_CFLAGS)
override LDFLAGS := -L../../ecpglib -L../../pgtypeslib -L../../../libpq $(LDFLAGS)
override LIBS := -lpgtypes -lecpg -lpq $(LIBS) $(PTHREAD_LIBS)
ECPG = ../../preproc/ecpg -I$(srcdir)/../../include
%: %.c
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) $(PTHREAD_LIBS) -o $@
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) $(LIBS) -o $@
%.c: %.pgc ../regression.h
$(ECPG) -o $@ -I$(srcdir) $<