1#	$NetBSD: Makefile,v 1.3 2009/02/14 13:56:41 abs Exp $
2
3.include "../Makefile.inc"
4.include "../Makefile.assym"
5
6KMOD=	compat_sunos
7
8CPPFLAGS+=	-DSYSVSHM -DSYSVSEM -DSYSVMSG -DCOMPAT_SUNOS
9CPPFLAGS+=	-DEXEC_AOUT
10
11.PATH:	${S}/compat/sunos
12SRCS+=	sunos_exec.c sunos_ioctl.c sunos_mod.c sunos_sysent.c
13SRCS+=	sunos_exec_aout.c sunos_misc.c sunos_syscalls.c
14
15.if ${MACHINE} == "sparc64"
16.PATH:	${S}/arch/sparc64/sparc64
17SRCS+=	sunos_machdep.c
18.endif
19
20.if ${MACHINE} == "sparc"
21.PATH:	${S}/arch/sparc/sparc
22SRCS+=	sunos_machdep.c
23.endif
24
25.include <bsd.kmodule.mk>
26