custom message type for VM_INFO
[minix3.git] / lib / csu / Makefile
blob69a9e08eccb130a279afd68e382cd55aa94cdac6
1 # $NetBSD: Makefile,v 1.33 2013/09/10 16:45:33 matt Exp $
3 .include <bsd.own.mk>
5 .if defined(__MINIX)
6 USE_BITCODE:= no
7 .endif # defined(__MINIX)
9 .if ${USE_COMPILERCRTSTUFF} != "yes"
11 CSU_MACHINE_ARCH?= ${MACHINE_ARCH}
13 .if !empty(CSU_MACHINE_ARCH:Mearm*)
14 ARCHDIR:= ${.CURDIR}/arch/earm
15 .elif exists(${.CURDIR}/arch/${CSU_MACHINE_ARCH}/Makefile.inc)
16 ARCHDIR:= ${.CURDIR}/arch/${CSU_MACHINE_ARCH}
17 .elif exists(${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc)
18 ARCHDIR:= ${.CURDIR}/arch/${MACHINE_CPU}
19 .else
20 .error Architecture (${CSU_MACHINE_ARCH} or ${MACHINE_CPU}) unsupported
21 .endif
24 .PATH: ${ARCHDIR}
25 . include "${ARCHDIR}/Makefile.inc"
27 . include "${.CURDIR}/common/Makefile.inc"
29 .else
31 CSU_MACHINE_ARCH?= ${MACHINE_ARCH}
33 . if exists(${CSU_MACHINE_ARCH}_elf/Makefile)
34 SUBDIR= ${CSU_MACHINE_ARCH}_elf
35 . elif exists(${CSU_MACHINE_ARCH}/Makefile)
36 SUBDIR= ${CSU_MACHINE_ARCH}
37 . elif exists(${MACHINE_CPU}_elf/Makefile)
38 SUBDIR= ${MACHINE_CPU}_elf
39 . elif exists(${MACHINE_CPU}/Makefile)
40 SUBDIR= ${MACHINE_CPU}
41 . else
42 .BEGIN:
43 @echo no SUBDIR for ${MACHINE_ARCH}_elf, ${MACHINE_ARCH} nor \
44 ${MACHINE_CPU}
45 @false
46 . endif
48 . include <bsd.subdir.mk>
49 .endif