NetBSD/sys/lkm/compat/ibcs2/Makefile

27 lines
697 B
Makefile

# $NetBSD: Makefile,v 1.9 2005/12/11 12:24:47 christos Exp $
.include "../Makefile.inc"
.PATH: $S/compat/ibcs2 $S/arch/${MACHINE}/${MACHINE}
CPPFLAGS+= -DCOMPAT_SVR4 -DSYSVSEM -DSYSVMSG -DSYSVSHM \
-DSVR4_COMPAT_SOLARIS2 -DCOMPAT_IBCS2
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE \
-I. -I${S}
KMOD= compat_ibcs2
# common source files
SRCS+= lkminit_emul.c
SRCS+= ibcs2_errno.c ibcs2_exec.c ibcs2_fcntl.c ibcs2_ioctl.c ibcs2_ipc.c \
ibcs2_misc.c ibcs2_signal.c ibcs2_socksys.c ibcs2_stat.c \
ibcs2_syscalls.c ibcs2_sysent.c
# MD source
.if ${MACHINE} == "i386"
.PATH: $S/arch/i386/i386
SRCS+= ibcs2_sigcode.S ibcs2_machdep.c ibcs2_syscall.c
.endif
.include <bsd.kmod.mk>