blob: 32c63700f1b80379cfd507269051dbcf3bc971b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# ex:ts=8
#
# $Id: Makefile.inc,v 1.3 1998/09/09 16:11:01 obrien Exp $
#
# 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; \
# printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -Bs -f-
#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; \
printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -Bs -f-
LIBAMU= ${LIBAMUDIR}/libamu.a
.if !defined(INFO)
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}
${RPCCOM} -h -C -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET}
nfs_prot.h: ${NFS_PROT_X}
${RPCCOM} -h -C -DWANT_NFS3 ${NFS_PROT_X} -o ${.TARGET}
.endif
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
|