Makefile.inc revision 38581
1# ex:ts=8 2# 3# $Id$ 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} -s -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} -s -f- 25LIBAMU= ${LIBAMUDIR}/libamu.a 26 27 28SRCS+= config_local.h 29CLEANFILES+= config_local.h 30config_local.h: ${.CURDIR}/../include/newvers.sh 31 @rm -f ${.TARGET} 32 sh ${.ALLSRC} > ${.TARGET} 33 34 35RPCCOM= rpcgen 36MOUNT_X= ${DESTDIR}/usr/include/rpcsvc/mount.x 37NFS_PROT_X= ${DESTDIR}/usr/include/rpcsvc/nfs_prot.x 38# These are generated at compile time 39SRCS+= mount.h nfs_prot.h 40CLEANFILES+= mount.h nfs_prot.h 41 42mount.h: ${MOUNT_X} 43 ${RPCCOM} -h -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET} 44 45nfs_prot.h: ${NFS_PROT_X} 46 ${RPCCOM} -h ${NFS_PROT_X} -o ${.TARGET} 47 48 49.if exists(${.CURDIR}/../../Makefile.inc) 50.include "${.CURDIR}/../../Makefile.inc" 51.endif 52