mirror of https://github.com/postgres/postgres
Fix inadequate makefile-fu in ecpg regression tests. I think this
will fix current platypus build failure.
This commit is contained in:
parent
6a7d3d093e
commit
0bf9d3a59e
|
@ -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) $<
|
||||
|
|
Loading…
Reference in New Issue