1 # $NetBSD: Makefile.inc,v 1.9 2014/10/22 10:33:27 joerg Exp $
3 COMPILER_RT_SRCDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
5 .if ${MACHINE_CPU} == "powerpc"
6 COMPILER_RT_CPU_DIR= ${COMPILER_RT_SRCDIR}/lib/builtins/ppc
7 COMPILER_RT_ARCH_DIR= ${COMPILER_RT_SRCDIR}/lib/builtins/ppc
9 COMPILER_RT_CPU_DIR= ${COMPILER_RT_SRCDIR}/lib/builtins/${MACHINE_CPU}
10 COMPILER_RT_ARCH_DIR= ${COMPILER_RT_SRCDIR}/lib/builtins/${MACHINE_ARCH}
14 .PATH: ${COMPILER_RT_CPU_DIR}
15 .PATH: ${COMPILER_RT_ARCH_DIR}
16 .endif # !defined(__MINIX)
17 .PATH: ${COMPILER_RT_SRCDIR}/lib/builtins
19 # Needs scaling support
28 .if ${MACHINE_CPU} == "powerpc"
35 .for src in ${GENERIC_SRCS}
36 . if exists(${COMPILER_RT_CPU_DIR}/${src:R}.S) || \
37 exists(${COMPILER_RT_ARCH_DIR}/${src:R}.S)
41 COPTS.${src}+= -Wno-error=missing-prototypes
45 # For MINIX: do not pull in the assembly symbols, as they are not PIC ready
46 .for src in ${GENERIC_SRCS}
48 COPTS.${src}+= -Wno-error=missing-prototypes
50 .endif # !defined(__MINIX)