2003-09-12 17:01:57 +04:00
|
|
|
# $NetBSD: Makefile,v 1.6 2003/09/12 13:01:57 christos Exp $
|
2000-12-08 23:15:11 +03:00
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
.PATH: $S/compat/ibcs2 $S/arch/${MACHINE}/${MACHINE}
|
|
|
|
|
2003-09-12 17:01:57 +04:00
|
|
|
CPPFLAGS+= -DCOMPAT_IBCS2 -DCOMPAT_SVR4 -DSYSVSEM -DSYSVMSG -DSYSVSHM -DSVR4_COMPAT_SOLARIS2
|
2000-12-13 14:18:37 +03:00
|
|
|
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE \
|
|
|
|
-I. -I${S}
|
2000-12-08 23:15:11 +03:00
|
|
|
|
|
|
|
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
|
2002-11-23 05:15:45 +03:00
|
|
|
SRCS+= ibcs2_sigcode.S ibcs2_machdep.c ibcs2_syscall.c
|
2000-12-08 23:15:11 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|