summaryrefslogtreecommitdiff
path: root/src/test/examples/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/examples/Makefile')
-rw-r--r--src/test/examples/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/examples/Makefile b/src/test/examples/Makefile
index 8368e4078e8..9dd159e2f2e 100644
--- a/src/test/examples/Makefile
+++ b/src/test/examples/Makefile
@@ -2,12 +2,13 @@
# Makefile for example programs
#
-SRCDIR= ../..
-include ../../Makefile.global
+subdir = src/test/examples
+top_builddir = ../../..
+include $(top_builddir)/src/Makefile.global
-CFLAGS+= -I$(LIBPQDIR)
+CPPFLAGS+= -I$(libpq_srcdir)
-LDFLAGS+= -L$(LIBPQDIR) -lpq
+LDFLAGS+= $(libpq)
# PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 testlibpq4 testlo