Makefile.inc revision 43111
1# ex:ts=8 2# 3# $Id: Makefile.inc,v 1.3 1998/09/09 16:11:01 obrien Exp $ 4# 5# Makefile for amd 6# This file is under a "BSD" copyright (c) by David O'Brien 1998. 7# Portions derived from 8# $NetBSD: Makefile.inc,v 1.10 1998/08/08 22:33:27 christos Exp $ 9# Portions derived from amd/libamu/Makefile 10# $NetBSD: Makefile,v 1.8 1998/08/08 22:33:37 christos Exp $ 11# 12 13#INCGEN!= cd ${.CURDIR}/../include; \ 14# printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -Bs -f- 15 16#CFLAGS+= -I${INCGEN} 17CFLAGS+= -I. -I${.CURDIR} 18CFLAGS+= -I${.CURDIR}/../include 19CFLAGS+= -I${.CURDIR}/../../../contrib/amd/include 20CFLAGS+= -I${.CURDIR}/../../../contrib/amd 21CFLAGS+= -DHAVE_CONFIG_H 22 23LIBAMUDIR!= cd ${.CURDIR}/../libamu; \ 24 printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -Bs -f- 25LIBAMU= ${LIBAMUDIR}/libamu.a 26 27.if !defined(INFO) 28 29SRCS+= config_local.h 30CLEANFILES+= config_local.h 31config_local.h: ${.CURDIR}/../include/newvers.sh 32 @rm -f ${.TARGET} 33 sh ${.ALLSRC} > ${.TARGET} 34 35 36RPCCOM= rpcgen 37MOUNT_X= ${DESTDIR}/usr/include/rpcsvc/mount.x 38NFS_PROT_X= ${DESTDIR}/usr/include/rpcsvc/nfs_prot.x 39# These are generated at compile time 40SRCS+= mount.h nfs_prot.h 41CLEANFILES+= mount.h nfs_prot.h 42 43mount.h: ${MOUNT_X} 44 ${RPCCOM} -h -C -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET} 45 46nfs_prot.h: ${NFS_PROT_X} 47 ${RPCCOM} -h -C -DWANT_NFS3 ${NFS_PROT_X} -o ${.TARGET} 48 49.endif 50 51.if exists(${.CURDIR}/../../Makefile.inc) 52.include "${.CURDIR}/../../Makefile.inc" 53.endif 54