Makefile.compiler-rt revision 1.4
11.4Sjoerg# $NetBSD: Makefile.compiler-rt,v 1.4 2014/02/26 22:37:55 joerg Exp $ 21.1Sjoerg 31.1SjoergCOMPILER_RT_SRCDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist 41.1Sjoerg 51.1Sjoerg.if ${MACHINE_ARCH} == "powerpc" 61.4SjoergCOMPILER_RT_CPU_DIR= ${COMPILER_RT_SRCDIR}/lib/builtins/ppc 71.4SjoergCOMPILER_RT_ARCH_DIR= ${COMPILER_RT_SRCDIR}/lib/builtins/ppc 81.1Sjoerg.else 91.4SjoergCOMPILER_RT_CPU_DIR= ${COMPILER_RT_SRCDIR}/lib/builtins/${MACHINE_CPU} 101.4SjoergCOMPILER_RT_ARCH_DIR= ${COMPILER_RT_SRCDIR}/lib/builtins/${MACHINE_ARCH} 111.1Sjoerg.endif 121.1Sjoerg 131.1Sjoerg.PATH: ${COMPILER_RT_CPU_DIR} 141.1Sjoerg.PATH: ${COMPILER_RT_ARCH_DIR} 151.4Sjoerg.PATH: ${COMPILER_RT_SRCDIR}/lib/builtins 161.1Sjoerg 171.1SjoergGENERIC_SRCS+= \ 181.1Sjoerg absvdi2.c \ 191.1Sjoerg absvsi2.c \ 201.1Sjoerg absvti2.c \ 211.1Sjoerg addvdi3.c \ 221.1Sjoerg addvsi3.c \ 231.1Sjoerg addvti3.c \ 241.1Sjoerg ashldi3.c \ 251.1Sjoerg ashlti3.c \ 261.1Sjoerg ashrdi3.c \ 271.1Sjoerg ashrti3.c \ 281.1Sjoerg clzdi2.c \ 291.1Sjoerg clzsi2.c \ 301.1Sjoerg clzti2.c \ 311.1Sjoerg cmpdi2.c \ 321.1Sjoerg cmpti2.c \ 331.1Sjoerg ctzdi2.c \ 341.1Sjoerg ctzsi2.c \ 351.1Sjoerg ctzti2.c \ 361.1Sjoerg divdi3.c \ 371.1Sjoerg divmoddi4.c \ 381.1Sjoerg divmodsi4.c \ 391.1Sjoerg divsi3.c \ 401.1Sjoerg divti3.c \ 411.1Sjoerg ffsdi2.c \ 421.1Sjoerg ffsti2.c \ 431.1Sjoerg int_util.c \ 441.1Sjoerg lshrdi3.c \ 451.1Sjoerg lshrti3.c \ 461.1Sjoerg moddi3.c \ 471.1Sjoerg modsi3.c \ 481.1Sjoerg modti3.c \ 491.1Sjoerg muldi3.c \ 501.1Sjoerg mulodi4.c \ 511.1Sjoerg mulosi4.c \ 521.1Sjoerg muloti4.c \ 531.1Sjoerg multi3.c \ 541.1Sjoerg mulvdi3.c \ 551.1Sjoerg mulvsi3.c \ 561.1Sjoerg mulvti3.c \ 571.1Sjoerg negdi2.c \ 581.1Sjoerg negti2.c \ 591.1Sjoerg negvdi2.c \ 601.1Sjoerg negvsi2.c \ 611.1Sjoerg negvti2.c \ 621.1Sjoerg paritydi2.c \ 631.1Sjoerg paritysi2.c \ 641.1Sjoerg parityti2.c \ 651.1Sjoerg popcountdi2.c \ 661.1Sjoerg popcountsi2.c \ 671.1Sjoerg popcountti2.c \ 681.1Sjoerg subvdi3.c \ 691.1Sjoerg subvsi3.c \ 701.1Sjoerg subvti3.c \ 711.1Sjoerg ucmpdi2.c \ 721.1Sjoerg ucmpti2.c \ 731.1Sjoerg udivdi3.c \ 741.1Sjoerg udivmoddi4.c \ 751.1Sjoerg udivmodsi4.c \ 761.1Sjoerg udivmodti4.c \ 771.1Sjoerg udivsi3.c \ 781.1Sjoerg udivti3.c \ 791.1Sjoerg umoddi3.c \ 801.1Sjoerg umodsi3.c \ 811.1Sjoerg umodti3.c 821.1Sjoerg 831.1Sjoerg.if ${MACHINE_CPU} == "arm" 841.2Sjoerg. if !empty(MACHINE_ARCH:Mearm*) 851.1SjoergGENERIC_SRCS+= \ 861.1Sjoerg aeabi_idivmod.S \ 871.1Sjoerg aeabi_ldivmod.S \ 881.1Sjoerg aeabi_uidivmod.S \ 891.3Sjoerg aeabi_uldivmod.S \ 901.3Sjoerg __aeabi_idiv0.c \ 911.3Sjoerg __aeabi_ldiv0.c 921.1Sjoerg. endif 931.1Sjoerg.endif 941.1Sjoerg 951.1Sjoerg.for src in ${GENERIC_SRCS} 961.1Sjoerg. if exists(${COMPILER_RT_CPU_DIR}/${src:R}.S) || \ 971.1Sjoerg exists(${COMPILER_RT_ARCH_DIR}/${src:R}.S) 981.1SjoergSRCS+= ${src:R}.S 991.1Sjoerg. else 1001.1SjoergSRCS+= ${src} 1011.1SjoergCOPTS.${src}+= -Wno-missing-prototypes \ 1021.1Sjoerg -Wno-old-style-definition \ 1031.1Sjoerg -Wno-strict-prototypes \ 1041.1Sjoerg -Wno-uninitialized 1051.1Sjoerg. endif 1061.1Sjoerg.endfor 1071.1Sjoerg 1081.1SjoergCPPFLAGS.int_util.c+= -DKERNEL_USE 109