NetBSD/usr.sbin/pkg_install/Makefile.inc

61 lines
1.3 KiB
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.19 2002/08/02 17:04:55 seb Exp $
2000-10-25 19:55:44 +04:00
# Original from FreeBSD, no rcs id.
2001-01-07 11:00:54 +03:00
.include <bsd.own.mk>
2001-01-07 11:00:54 +03:00
LIBINSTALL != cd ${.CURDIR}/../lib && ${PRINTOBJDIR}
CPPFLAGS+=-I${.CURDIR}/../lib ${DEBUG} -DBINDIR='"${BINDIR}"'
.if !defined(OPSYS)
1999-08-30 08:20:22 +04:00
.if exists(/usr/bin/uname)
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
.endif
.if ${OPSYS} == "NetBSD"
CHMOD?= /bin/chmod
CHOWN?= /usr/sbin/chown
CHGRP?= /usr/bin/chgrp
2002-06-10 13:14:26 +04:00
WARNS=2
.elif ${OPSYS} == "SunOS"
LOCALBASE?= /usr/pkg
TAR_CMD?= tar
FTP_CMD?= ftp
ZOULARISBASE?= ${LOCALBASE}/bsd
TAR_FULLPATHNAME?= ${ZOULARISBASE}/bin/${TAR_CMD}
FTP_FULLPATHNAME?= ${ZOULARISBASE}/bin/${FTP_CMD}
CPPFLAGS+=-DTAR_CMD='"${TAR_CMD}"' -DTAR_FULLPATHNAME='"${TAR_FULLPATHNAME}"'
CPPFLAGS+=-DFTP_CMD='"${FTP_CMD}"' -DFTP_FULLPATHNAME='"${FTP_FULLPATHNAME}"'
BINDIR=${ZOULARISBASE}/bin
CHMOD?= /usr/bin/chmod
CHOWN?= /usr/bin/chown
CHGRP?= /usr/bin/chgrp
WARNS=0
.elif ${OPSYS} == "Linux"
CHMOD?= /bin/chmod
CHOWN?= /bin/chown
CHGRP?= /bin/chgrp
.endif
CPPFLAGS+= -DCHMOD='"${CHMOD}"' -DCHOWN='"${CHOWN}"' -DCHGRP='"${CHGRP}"'
1997-10-17 18:53:18 +04:00
DPADD+= ${LIBINSTALL}/libinstall.a
LDADD+= -L${LIBINSTALL} -linstall
.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