freebsd-dev/sys/modules/coda5/Makefile
Yaroslav Tykhiy 82967ff0b8 CODA_COMPAT_5 may not be defined unconditionally in the coda5 module.
Otherwise a kernel build would break in the coda5 module if the main
kernel conf file enabled CODA_COMPAT_5, too.  Redefined symbols are
strictly disallowed by -Werror.

To overcome this issue, introduce a different symbol indicating coda5
build, CODA5_MODULE, and translate it to CODA_COMPAT_5 appropriately
in /sys/coda/coda.h.

MFC after:	3 days
2006-02-27 12:04:13 +00:00

14 lines
235 B
Makefile

# $FreeBSD$
.PATH: ${.CURDIR}/../../coda
KMOD= coda5
SRCS= vnode_if.h \
coda_fbsd.c coda_namecache.c coda_psdev.c coda_subr.c \
coda_venus.c coda_vfsops.c coda_vnops.c \
opt_coda.h
CFLAGS+= -DCODA5_MODULE
.include <bsd.kmod.mk>