diff options
| author | Peter Eisentraut | 2000-10-20 21:04:27 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-10-20 21:04:27 +0000 |
| commit | 805e431a3868ac71681316927403d1ba389e113b (patch) | |
| tree | e20ff81ccb4be79cbd43e87cf76f33ee5fb1887d /src/test/examples | |
| parent | 039f3f1b051b189e7ccf0c28d86d415e693ee8d6 (diff) | |
Add support for VPATH builds, that is, building somewhere else than in the
source directory. This involves mostly makefiles using $(srcdir) when they
might have used ".". (Regression tests don't work with this, yet.)
Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS). Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
Diffstat (limited to 'src/test/examples')
| -rw-r--r-- | src/test/examples/Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/examples/Makefile b/src/test/examples/Makefile index 9dd159e2f2e..b07c84efe5b 100644 --- a/src/test/examples/Makefile +++ b/src/test/examples/Makefile @@ -6,9 +6,8 @@ subdir = src/test/examples top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -CPPFLAGS+= -I$(libpq_srcdir) - -LDFLAGS+= $(libpq) +override CPPFLAGS+= -I$(libpq_srcdir) +LIBS += $(libpq) # PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 testlibpq4 testlo @@ -16,8 +15,5 @@ PROGS = testlibpq testlibpq2 testlibpq3 testlibpq4 testlo testlo2 all: $(PROGS) -$(PROGS): % : %.c - $(CC) $(CFLAGS) -o $@ $@.c $(LDFLAGS) - clean: rm -f $(PROGS) |
