Home | History | Annotate | Line # | Download | only in libsljit
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 2014/07/23 07:16:14 alnsn 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 
     11 SRCS=	sljitLir.c sljit_mod.c
     12 
     13 # NOTE This is not the best place for icache sync routine but only
     14 # sljit uses it at the moment.
     15 # XXX Think about a good hypercall interface (hi, pooka!) and move
     16 # this stuff to rumpuser.
     17 .if !empty(MACHINE_ARCH:Mmips*)
     18 SRCS+=			cache.c
     19 RUMPCOMP_USER_SRCS=	sljit_rump.c
     20 .PATH:			${.CURDIR}/arch/mips
     21 
     22 RUMPCOMP_INCS_DIR:=	${.PARSEDIR}
     23 RUMPCOMP_USER_CPPFLAGS=-I${RUMPCOMP_INCS_DIR}
     24 .endif
     25 
     26 .if !empty(MACHINE_ARCH:Marm*) || !empty(MACHINE_ARCH:Mearm*)
     27 SRCS+=			cpufunc.c
     28 RUMPCOMP_USER_SRCS=	sljit_rump.c
     29 .PATH:			${.CURDIR}/arch/arm
     30 
     31 RUMPCOMP_INCS_DIR:=	${.PARSEDIR}
     32 RUMPCOMP_USER_CPPFLAGS=-I${RUMPCOMP_INCS_DIR}
     33 
     34 # Link to libarm to get arm_sync_icache(2)
     35 LDADD+=	-larm
     36 .endif
     37 
     38 .include <bsd.lib.mk>
     39 .include <bsd.klinks.mk>
     40