summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-02-07 17:17:34 +0000
committerBruce Momjian <bruce@momjian.us>2009-02-07 17:17:34 +0000
commite795b56322a1e61c94b025065e706e287f758407 (patch)
treeca0ca1f8be97a05c26fc399b7a300da618acdca5 /src
parent952fe78a054e9096a81cbf53ad3780bc661182bb (diff)
downloadpostgresql-e795b56322a1e61c94b025065e706e287f758407.tar.gz
ecpg requires libpq; add Makefile rules to require libpq to be built
first. Alvaro Herrera
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/ecpglib/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile
index 9d167ad1e9..d4f614e53c 100644
--- a/src/interfaces/ecpg/ecpglib/Makefile
+++ b/src/interfaces/ecpg/ecpglib/Makefile
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
-# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.62 2009/01/14 14:54:35 petere Exp $
+# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.63 2009/02/07 17:17:34 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -42,7 +42,13 @@ ifeq ($(PORTNAME), win32)
SHLIB_LINK += -lshfolder
endif
-all: all-lib
+all: libpq pgtypeslib all-lib
+
+libpq:
+ $(MAKE) -C $(top_builddir)/src/interfaces/libpq all
+
+pgtypeslib:
+ $(MAKE) -C $(top_builddir)/src/interfaces/ecpg/pgtypeslib all
# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib