2001-04-08 18:11:48 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.16 2001/04/08 14:11:48 hubertf Exp $
|
2000-10-25 19:55:44 +04:00
|
|
|
# Original from FreeBSD, no rcs id.
|
1997-06-05 16:59:18 +04:00
|
|
|
|
2001-01-07 11:00:54 +03:00
|
|
|
.include <bsd.own.mk>
|
2000-10-27 15:49:23 +04:00
|
|
|
|
2001-01-07 11:00:54 +03:00
|
|
|
LIBINSTALL != cd ${.CURDIR}/../lib && ${PRINTOBJDIR}
|
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-23 14:34:53 +04:00
|
|
|
.if !defined(OPSYS)
|
1999-08-30 08:20:22 +04:00
|
|
|
.if exists(/usr/bin/uname)
|
1999-08-23 14:34:53 +04:00
|
|
|
OPSYS!= /usr/bin/uname -s
|
1999-08-30 08:20:22 +04:00
|
|
|
.elif exists(/bin/uname)
|
|
|
|
OPSYS!= /bin/uname -s
|
|
|
|
.else
|
|
|
|
OPSYS="unknown"
|
|
|
|
.endif
|
1999-08-20 18:34:34 +04:00
|
|
|
.endif
|
|
|
|
|
1999-08-23 14:34:53 +04:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
2001-04-08 18:11:48 +04:00
|
|
|
CHMOD?= /bin/chmod
|
|
|
|
CHOWN?= /usr/sbin/chown
|
|
|
|
CHGRP?= /usr/bin/chgrp
|
1999-08-23 14:34:53 +04:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
1999-08-20 13:12:10 +04:00
|
|
|
LOCALBASE?= /usr/local
|
2001-03-23 17:06:16 +03:00
|
|
|
TAR_CMD?= tar
|
2001-04-08 18:11:48 +04:00
|
|
|
ZOULARISBASE?= ${LOCALBASE}/bsd
|
|
|
|
TAR_FULLPATHNAME?= ${ZOULARISBASE}/bin/${TAR_CMD}
|
1999-08-20 13:12:10 +04:00
|
|
|
CPPFLAGS+=-DTAR_CMD='"${TAR_CMD}"' -DTAR_FULLPATHNAME='"${TAR_FULLPATHNAME}"'
|
2001-04-08 18:11:48 +04:00
|
|
|
BINDIR=${ZOULARISBASE}/bin
|
|
|
|
CHMOD?= /usr/bin/chmod
|
|
|
|
CHOWN?= /usr/bin/chown
|
|
|
|
CHGRP?= /usr/bin/chgrp
|
1999-08-23 14:34:53 +04:00
|
|
|
WARNS=0
|
|
|
|
.elif ${OPSYS} == "Linux"
|
2001-04-08 18:11:48 +04:00
|
|
|
CHMOD?= /bin/chmod
|
|
|
|
CHOWN?= /bin/chown
|
|
|
|
CHGRP?= /bin/chgrp
|
1999-08-20 13:12:10 +04:00
|
|
|
.endif
|
|
|
|
|
1999-08-23 14:34:53 +04:00
|
|
|
CPPFLAGS+= -DCHMOD='"${CHMOD}"' -DCHOWN='"${CHOWN}"' -DCHGRP='"${CHGRP}"'
|
|
|
|
|
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
|
2000-09-01 08:34:03 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#CFLAGS+= -g
|
|
|
|
#STRIPFLAG= # unset
|
|
|
|
#LDFLAGS+= -L/usr/pkg/lib -lefence
|