1998-08-27 08:09:42 +00:00
|
|
|
# ex:ts=8
|
|
|
|
#
|
1999-01-23 21:24:49 +00:00
|
|
|
# $Id: Makefile.inc,v 1.3 1998/09/09 16:11:01 obrien Exp $
|
1998-08-27 08:09:42 +00:00
|
|
|
#
|
|
|
|
# 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; \
|
1998-09-09 16:11:01 +00:00
|
|
|
# printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -Bs -f-
|
1998-08-27 08:09:42 +00:00
|
|
|
|
|
|
|
#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; \
|
1998-08-30 19:59:35 +00:00
|
|
|
printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -Bs -f-
|
1998-08-27 08:09:42 +00:00
|
|
|
LIBAMU= ${LIBAMUDIR}/libamu.a
|
|
|
|
|
1999-01-23 21:24:49 +00:00
|
|
|
.if !defined(INFO)
|
1998-08-27 08:09:42 +00:00
|
|
|
|
|
|
|
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}
|
1998-09-09 16:11:01 +00:00
|
|
|
${RPCCOM} -h -C -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET}
|
1998-08-27 08:09:42 +00:00
|
|
|
|
|
|
|
nfs_prot.h: ${NFS_PROT_X}
|
1998-09-09 16:11:01 +00:00
|
|
|
${RPCCOM} -h -C -DWANT_NFS3 ${NFS_PROT_X} -o ${.TARGET}
|
1998-08-27 08:09:42 +00:00
|
|
|
|
1999-01-23 21:24:49 +00:00
|
|
|
.endif
|
1998-08-27 08:09:42 +00:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.endif
|