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