590fa669c8
- all command executions now use the path [execvp/execlp/system]. - normalize the macro names as <COMMAND>_CMD. - in some OS's full pathnames for commands can still be provided, but this is not the default. This was needed to fix -DTAR_FULLPATHNAME="/usr/bin/tar"
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# $NetBSD: Makefile.inc,v 1.22 2002/10/17 03:31:33 christos Exp $
|
|
# Original from FreeBSD, no rcs id.
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIBINSTALL != cd ${.CURDIR}/../lib && ${PRINTOBJDIR}
|
|
CPPFLAGS+=-I${.CURDIR}/../lib ${DEBUG} -DBINDIR='"${BINDIR}"'
|
|
|
|
# If building for Zoularis on Solaris, some other Makefile should do:
|
|
#LOCALBASE?= /usr/pkg
|
|
#ZOULARISBASE?= ${LOCALBASE}/bsd
|
|
#BINDIR=${ZOULARISBASE}/bin
|
|
#TAR_CMD?= ${BINDIR}/tar
|
|
#FTP_CMD?= ${BINDIR}/ftp
|
|
#CPPFLAGS+=-DTAR_CMD='"${TAR_CMD}"' -DFTP_CMD='"${FTP_CMD}"'
|
|
#CHMOD_CMD?= /usr/bin/chmod
|
|
#CHOWN_CMD?= /usr/bin/chown
|
|
#CHGRP_CMD?= /usr/bin/chgrp
|
|
#WARNS=0
|
|
|
|
# If building for Zoularis on Linux, some other Makefile should do:
|
|
#CHMOD_CMD?= /bin/chmod
|
|
#CHOWN_CMD?= /bin/chown
|
|
#CHGRP_CMD?= /bin/chgrp
|
|
|
|
# UNDER NO CIRCUMSTANCES SHOULD THIS MAKEFILE TEST THE OUTPUT OF uname!!
|
|
# DOING SO BREAKS CROSS COMPILING.
|
|
|
|
#CHMOD_CMD?= /bin/chmod
|
|
#CHOWN_CMD?= /usr/sbin/chown
|
|
#CHGRP_CMD?= /usr/bin/chgrp
|
|
WARNS=2
|
|
|
|
#CPPFLAGS+= -DCHMOD_CMD='"${CHMOD_CMD}"' -DCHOWN_CMD='"${CHOWN_CMD}"'
|
|
#CPPFLAGS+= -DCHGRP_CMD='"${CHGRP_CMD}"'
|
|
|
|
DPADD+= ${LIBINSTALL}/libinstall.a
|
|
LDADD+= -L${LIBINSTALL} -linstall
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
.endif
|
|
|
|
#CFLAGS+= -g
|
|
#STRIPFLAG= # unset
|
|
#LDFLAGS+= -L/usr/pkg/lib -lefence
|