Make this work on Solaris "out of the box"

This commit is contained in:
agc 1999-08-20 09:12:10 +00:00
parent 1705bbe96b
commit b41eccc5cd
1 changed files with 13 additions and 1 deletions

View File

@ -1,9 +1,21 @@
# $NetBSD: Makefile.inc,v 1.6 1999/08/19 14:37:36 agc Exp $
# $NetBSD: Makefile.inc,v 1.7 1999/08/20 09:12:10 agc Exp $
# Original from Freebsd, no rcs id.
LIBINSTALL != cd ${.CURDIR}/../lib;\
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
CPPFLAGS+=-I${.CURDIR}/../lib ${DEBUG} -DBINDIR='"${BINDIR}"'
.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
DPADD+= ${LIBINSTALL}/libinstall.a
LDADD+= -L${LIBINSTALL} -linstall