#	$NetBSD: Makefile,v 1.3 2009/02/14 13:56:41 abs Exp $

.include "../Makefile.inc"
.include "../Makefile.assym"

KMOD=	compat_sunos

CPPFLAGS+=	-DSYSVSHM -DSYSVSEM -DSYSVMSG -DCOMPAT_SUNOS
CPPFLAGS+=	-DEXEC_AOUT

.PATH:	${S}/compat/sunos
SRCS+=	sunos_exec.c sunos_ioctl.c sunos_mod.c sunos_sysent.c
SRCS+=	sunos_exec_aout.c sunos_misc.c sunos_syscalls.c

.if ${MACHINE_ARCH} == "sparc64"
.PATH:	${S}/arch/sparc64/sparc64
SRCS+=	sunos_machdep.c
.endif

.if ${MACHINE_ARCH} == "sparc"
.PATH:	${S}/arch/sparc/sparc
SRCS+=	sunos_machdep.c
.endif

.include "${BSDSRCDIR}/share/mk/bsd.kmodule.mk"
