1 # $NetBSD: Makefile,v 1.4 2015/10/19 16:16:37 pooka Exp $ 2 # 3 # Public Domain. 4 # 5 6 .PATH: ${.CURDIR}/../../../../external/bsd/sljit/sljit \ 7 ${.CURDIR}/../../../../external/bsd/sljit/dist/sljit_src 8 9 LIB= rumpkern_sljit 10 COMMENT=Stackless JIT compiler 11 12 SRCS= sljitLir.c sljit_mod.c 13 14 # NOTE This is not the best place for icache sync routine but only 15 # sljit uses it at the moment. 16 # XXX Think about a good hypercall interface (hi, pooka!) and move 17 # this stuff to rumpuser. 18 .if !empty(MACHINE_ARCH:Mmips*) 19 SRCS+= cache.c 20 RUMPCOMP_USER_SRCS= sljit_rump.c 21 .PATH: ${.CURDIR}/arch/mips 22 23 RUMPCOMP_INCS_DIR:= ${.PARSEDIR} 24 RUMPCOMP_USER_CPPFLAGS=-I${RUMPCOMP_INCS_DIR} 25 .endif 26 27 .if !empty(MACHINE_ARCH:Marm*) || !empty(MACHINE_ARCH:Mearm*) 28 SRCS+= cpufunc.c 29 RUMPCOMP_USER_SRCS= sljit_rump.c 30 .PATH: ${.CURDIR}/arch/arm 31 32 RUMPCOMP_INCS_DIR:= ${.PARSEDIR} 33 RUMPCOMP_USER_CPPFLAGS=-I${RUMPCOMP_INCS_DIR} 34 35 # Link to libarm to get arm_sync_icache(2) 36 LDADD+= -larm 37 .endif 38 39 .include <bsd.lib.mk> 40 .include <bsd.klinks.mk> 41