81a687a7ff
Some of the changes I introduced to use .ALLSRC were correct in spirit, but incorrect in reality -- in particular, ../Makefile.inc hadn't been pulled in via bsd.init.mk (via bsd.lib.mk, bsd.prog.mk), so the value of .ALLSRC (evaluated immediately) was empty. .include bsd.init.mk explicitly so we can be certain that the values used as dependencies in the targets are defined when the target recipe has been evaluated. Reminder: thou shalt separate out separate functional changes before committing them. (YUGE) Pointyhat to: ngie In collaboration with: bdrewery MFC after: 1 month Reported by: Jenkins, cy, ler, O. Hartmann, Michael Butler Sponsored by: Dell EMC Isilon
39 lines
1002 B
Makefile
39 lines
1002 B
Makefile
# ex:ts=8
|
|
#
|
|
# Makefile for amd
|
|
# This file is under a "BSD" copyright (c) by David O'Brien 1998
|
|
#
|
|
# $FreeBSD$
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
.PATH: ${SRCTOP}/contrib/amd/libamu \
|
|
${SRCTOP}/contrib/amd/conf/transp \
|
|
${SRCTOP}/contrib/amd/conf/mtab \
|
|
${SRCTOP}/contrib/amd/conf/umount
|
|
|
|
LIB= amu
|
|
INTERNALLIB=
|
|
SRCS= hasmntopt.c misc_rpc.c mount_fs.c mtab.c nfs_prot_xdr.c \
|
|
strutil.c wire.c xutil.c
|
|
|
|
# These would be links created by the GNU-style configure
|
|
SRCS+= transp_sockets.c mtab_bsd.c umount_bsd44.c
|
|
|
|
# Generated at compile time (replaces supplied xdr_func.c)
|
|
SRCS+= nfs_prot_x.c xdr_func_%undef.c
|
|
CLEANFILES+= nfs_prot_x.c xdr_func_%undef.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/contrib/amd/libamu \
|
|
-I${OBJTOP}/include/rpcsvc
|
|
|
|
nfs_prot_x.c: ${NFS_PROT_X}
|
|
${RPCCOM} -c -C -DWANT_NFS3 ${.ALLSRC} -o ${.TARGET}
|
|
|
|
XDRDEFS!= grep 'ifndef.*HAVE_XDR' ${SRCTOP}/contrib/amd/libamu/xdr_func.c | awk '{print "-D"$$2}'
|
|
|
|
xdr_func_%undef.c: xdr_func.c
|
|
-unifdef ${XDRDEFS} < ${.ALLSRC} > ${.TARGET}
|
|
|
|
.include <bsd.lib.mk>
|