1999-08-20 18:34:34 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.8 1999/08/20 14:34:34 agc Exp $
|
1997-06-05 16:59:18 +04:00
|
|
|
# Original from Freebsd, no rcs id.
|
|
|
|
|
1997-10-17 18:53:18 +04:00
|
|
|
LIBINSTALL != cd ${.CURDIR}/../lib;\
|
|
|
|
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
|
1999-08-19 18:37:36 +04:00
|
|
|
CPPFLAGS+=-I${.CURDIR}/../lib ${DEBUG} -DBINDIR='"${BINDIR}"'
|
1999-08-20 13:12:10 +04:00
|
|
|
|
1999-08-20 18:34:34 +04:00
|
|
|
.if !defined(OS)
|
|
|
|
OS!= uname -s
|
|
|
|
.endif
|
|
|
|
|
1999-08-20 13:12:10 +04:00
|
|
|
.if ${OS} == "SunOS.5"
|
|
|
|
.if exists(/etc/mk.conf)
|
|
|
|
.include "/etc/mk.conf"
|
|
|
|
.endif
|
|
|
|
LOCALBASE?= /usr/local
|
|
|
|
TAR_CMD?= gtar
|
|
|
|
TAR_FULLPATHNAME?= ${LOCALBASE}/bin/${TAR_CMD}
|
|
|
|
CPPFLAGS+=-DTAR_CMD='"${TAR_CMD}"' -DTAR_FULLPATHNAME='"${TAR_FULLPATHNAME}"'
|
|
|
|
BINDIR=${LOCALBASE}/bsd/bin
|
|
|
|
.endif
|
|
|
|
|
1997-10-17 18:53:18 +04:00
|
|
|
DPADD+= ${LIBINSTALL}/libinstall.a
|
|
|
|
LDADD+= -L${LIBINSTALL} -linstall
|
1997-10-17 16:03:36 +04:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.endif
|