1 # $NetBSD: Makefile.inc,v 1.1 2013/07/04 22:14:43 joerg Exp $
3 COMPILER_RT_SRCDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
5 .if ${MACHINE_ARCH} == "powerpc"
6 COMPILER_RT_CPU_DIR= ${COMPILER_RT_SRCDIR}/lib/ppc
7 COMPILER_RT_ARCH_DIR= ${COMPILER_RT_SRCDIR}/lib/ppc
9 COMPILER_RT_CPU_DIR= ${COMPILER_RT_SRCDIR}/lib/${MACHINE_CPU}
10 COMPILER_RT_ARCH_DIR= ${COMPILER_RT_SRCDIR}/lib/${MACHINE_ARCH}
15 .PATH: ${COMPILER_RT_CPU_DIR}
16 .PATH: ${COMPILER_RT_ARCH_DIR}
17 .endif # !defined(__MINIX)
18 .PATH: ${COMPILER_RT_SRCDIR}/lib
20 # Complex support needs parts of libm
95 gcc_personality_v0.c \
148 .if ${MACHINE_ARCH} == "powerpc"
160 .if !defined(__MINIX)
161 .for src in ${GENERIC_SRCS}
162 . if exists(${COMPILER_RT_CPU_DIR}/${src:R}.S) || \
163 exists(${COMPILER_RT_ARCH_DIR}/${src:R}.S)
167 COPTS.${src}+= -Wno-error=missing-prototypes
171 # For MINIX: do not pull in the assembly symbols, as they are not PIC ready
172 .for src in ${GENERIC_SRCS}
174 COPTS.${src}+= -Wno-error=missing-prototypes
178 COPTS.${src}+= -fbuiltin
180 .endif # !defined(__MINIX)