Fixed breakage of `make checkdpadd' in previous commit.

Didn't fix related bogotification from moving the definitions of
DPADD and LDADD to here.  Setting these variables in a top-level
directory gives bogus dependencies in library subdirectories.
E.g., there is a dependency on `foo.so..' where the double dots
separate null shared library version numbers.

Set BINDIR properly by inheriting it from ../Makefile.inc.
This commit is contained in:
Bruce Evans 1999-01-19 00:23:25 +00:00
parent d17e4ee67d
commit 0b4cb69d67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42821

View File

@ -1,18 +1,18 @@
# $Id: Makefile.inc,v 1.4 1997/12/17 15:18:48 cwt Exp $
# $Id: Makefile.inc,v 1.5 1999/01/18 07:38:09 simokawa Exp $
.if !defined(GLOBAL_MAKEFILE_INC_BEEN_HERE)
GLOBAL_MAKEFILE_INC_BEEN_HERE=yes
BINDIR?= /usr/bin
.if exists(${.OBJDIR}/../lib)
LIBDESTDIR= ${.OBJDIR}/../lib
.else
LIBDESTDIR= ${.CURDIR}/../lib
.endif
LDDESTDIR= -L${LIBDESTDIR}
LDADD= -lgloutil
DPADD= ${LIBDESTDIR}/libgloutil.a
LDADD= ${LIBDESTDIR}/libgloutil.a
CFLAGS+= -I${GLOBAL_DIR}/lib -O \
-Wall -Wwrite-strings -Wmissing-prototypes
.include "../Makefile.inc"
.endif