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