diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-24 08:53:54 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-24 08:53:54 +0000 |
commit | 54718a4db7a73e26f6c276f352e0682c36b5c527 (patch) | |
tree | 5f91b7729fd1bdb67af0af17bb78b53ca29f8bd6 /databases/postgresql | |
parent | a7c8e855cba1fc8efee19d3a05c929de3572328e (diff) | |
download | pkgsrc-54718a4db7a73e26f6c276f352e0682c36b5c527.tar.gz |
Standardize name of file to include for build-links to be "buildlink.mk".
Use BUILDLINK_INCDIR, BUILDLINK_LIBDIR for locations of linked headers
and libraries. Create a variable BUILDLINK_TARGETS whose value is the
list of build-link targets to execute.
Diffstat (limited to 'databases/postgresql')
-rw-r--r-- | databases/postgresql/Makefile.common | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/databases/postgresql/Makefile.common b/databases/postgresql/Makefile.common index 009668fc21e..4d1c6504566 100644 --- a/databases/postgresql/Makefile.common +++ b/databases/postgresql/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.15 2001/05/16 05:28:55 jlam Exp $ +# $NetBSD: Makefile.common,v 1.16 2001/05/24 08:54:27 jlam Exp $ # # This Makefile fragment is included by all PostgreSQL packages built from # the main sources of the PostgreSQL distribution. @@ -79,20 +79,19 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" CONFIGURE_ENV+= LIBS="${LIBS}" MAKE_ENV+= CUSTOM_COPT="${CFLAGS}" -WRKINCDIR= ${WRKDIR}/include -WRKLIBDIR= ${WRKDIR}/lib -CPPFLAGS+= -I${WRKINCDIR} -CFLAGS+= -I${WRKINCDIR} -LDFLAGS+= -L${WRKLIBDIR} +CPPFLAGS+= -I${BUILDLINK_INCDIR} +CFLAGS+= -I${BUILDLINK_INCDIR} +LDFLAGS+= -L${BUILDLINK_LIBDIR} -# The following is a hack to force ${WRKLIBDIR} to the front of the linker's -# library search path without having to patch a lot of Makefile. It works -# because the PostgreSQL Makefiles invoke the linker with $(CFLAGS) as well. +# The following is a hack to force ${BUILDLINK_LIBDIR} to the front of the +# linker's library search path without having to patch a lot of Makefile. +# It works because the PostgreSQL Makefiles invoke the linker with $(CFLAGS) +# as well. # -CFLAGS+= -L${WRKLIBDIR} +CFLAGS+= -L${BUILDLINK_LIBDIR} post-extract: - ${MKDIR} -p ${WRKINCDIR} ${WRKLIBDIR} + ${MKDIR} ${BUILDLINK_INCDIR} ${BUILDLINK_LIBDIR} if [ -d ${WRKSRC}/src ]; then \ ${RM} -f ${WRKSRC}/src/Makefile.custom; \ ${CP} -f ${COMMON_FILESDIR}/Makefile.custom \ |