diff options
author | obrien <obrien@FreeBSD.org> | 1998-08-27 08:09:42 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1998-08-27 08:09:42 +0000 |
commit | 94d0aeca4be109aab512a4b6808233d1d19afb5e (patch) | |
tree | e37a3bb538d2a2265475dfaf58e064ef4b3d2631 /usr.sbin/amd/Makefile.inc | |
parent | a9218237dec69d496f6dbe3c26dde6a199ba55c1 (diff) | |
download | FreeBSD-src-94d0aeca4be109aab512a4b6808233d1d19afb5e.zip FreeBSD-src-94d0aeca4be109aab512a4b6808233d1d19afb5e.tar.gz |
bmake framework for contrib_amd
Diffstat (limited to 'usr.sbin/amd/Makefile.inc')
-rw-r--r-- | usr.sbin/amd/Makefile.inc | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/usr.sbin/amd/Makefile.inc b/usr.sbin/amd/Makefile.inc new file mode 100644 index 0000000..0c11f73 --- /dev/null +++ b/usr.sbin/amd/Makefile.inc @@ -0,0 +1,51 @@ +# ex:ts=8 +# +# $Id$ +# +# Makefile for amd +# This file is under a "BSD" copyright (c) by David O'Brien 1998. +# Portions derived from +# $NetBSD: Makefile.inc,v 1.10 1998/08/08 22:33:27 christos Exp $ +# Portions derived from amd/libamu/Makefile +# $NetBSD: Makefile,v 1.8 1998/08/08 22:33:37 christos Exp $ +# + +#INCGEN!= cd ${.CURDIR}/../include; \ +# printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -s -f- + +#CFLAGS+= -I${INCGEN} +CFLAGS+= -I. -I${.CURDIR} +CFLAGS+= -I${.CURDIR}/../include +CFLAGS+= -I${.CURDIR}/../../../contrib/amd/include +CFLAGS+= -I${.CURDIR}/../../../contrib/amd +CFLAGS+= -DHAVE_CONFIG_H + +LIBAMUDIR!= cd ${.CURDIR}/../libamu; \ + printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -s -f- +LIBAMU= ${LIBAMUDIR}/libamu.a + + +SRCS+= config_local.h +CLEANFILES+= config_local.h +config_local.h: ${.CURDIR}/../include/newvers.sh + @rm -f ${.TARGET} + sh ${.ALLSRC} > ${.TARGET} + + +RPCCOM= rpcgen +MOUNT_X= ${DESTDIR}/usr/include/rpcsvc/mount.x +NFS_PROT_X= ${DESTDIR}/usr/include/rpcsvc/nfs_prot.x +# These are generated at compile time +SRCS+= mount.h nfs_prot.h +CLEANFILES+= mount.h nfs_prot.h + +mount.h: ${MOUNT_X} + ${RPCCOM} -h -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET} + +nfs_prot.h: ${NFS_PROT_X} + ${RPCCOM} -h ${NFS_PROT_X} -o ${.TARGET} + + +.if exists(${.CURDIR}/../../Makefile.inc) +.include "${.CURDIR}/../../Makefile.inc" +.endif |