Makefile.inc revision 275054
1# ex:ts=8
2#
3# $FreeBSD: head/usr.sbin/amd/Makefile.inc 275054 2014-11-25 16:57:27Z bapt $
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.include <src.opts.mk>
13
14CFLAGS+= -I. -I${.CURDIR} 
15CFLAGS+= -I${.CURDIR}/../include
16.if exists(${.OBJDIR}/../include)
17CFLAGS+= -I${.OBJDIR}/../include
18.endif
19CFLAGS+= -I${.CURDIR}/../../../contrib/amd/include
20CFLAGS+= -I${.CURDIR}/../../../contrib/amd
21CFLAGS+= -DHAVE_CONFIG_H
22.if ${MK_NIS} == "no"
23CFLAGS+= -DHAVE_LOCALCONFIG_H
24.endif
25
26.if ${MK_HESIOD} != "no"
27CFLAGS+= -DYES_HESIOD
28.endif
29
30CFLAGS+= -DHOST_CPU=\"${MACHINE_CPUARCH}\" -DHOST_ARCH=\"${MACHINE_ARCH}\"
31
32RPCCOM=		RPCGEN_CPP=${CPP:Q} rpcgen
33MOUNT_X=	${DESTDIR}/usr/include/rpcsvc/mount.x
34NFS_PROT_X=	${DESTDIR}/usr/include/rpcsvc/nfs_prot.x
35
36WARNS?=	1
37
38.if exists(${.CURDIR}/../../Makefile.inc)
39.include "${.CURDIR}/../../Makefile.inc"
40.endif
41