Makefile revision 236014
1215125Sed# $FreeBSD: stable/9/lib/libcompiler_rt/Makefile 236014 2012-05-25 17:20:00Z marius $ 2215125Sed 3215125Sed.include <bsd.own.mk> 4215125Sed 5215125SedLIB= compiler_rt 6215125SedNO_PIC= 7215125SedWARNS?= 2 8215125Sed 9215129SedCFLAGS+=${PICFLAG} -fvisibility=hidden -DVISIBILITY_HIDDEN 10215125Sed 11215125Sed.if ${MACHINE_CPUARCH} == "amd64" 12215125SedCRTARCH=x86_64 13215125Sed.else 14215125SedCRTARCH=${MACHINE_CPUARCH} 15215125Sed.endif 16215125Sed 17215125SedCRTSRC=${.CURDIR}/../../contrib/compiler-rt/lib 18215125Sed 19215125Sed.PATH: ${CRTSRC}/${CRTARCH} ${CRTSRC} 20215125Sed 21215125SedSRCF= absvdi2 \ 22215125Sed absvsi2 \ 23215125Sed absvti2 \ 24215125Sed addvdi3 \ 25215125Sed addvsi3 \ 26215125Sed addvti3 \ 27215125Sed ashldi3 \ 28215125Sed ashlti3 \ 29215125Sed ashrdi3 \ 30215125Sed ashrti3 \ 31215125Sed clear_cache \ 32215125Sed clzdi2 \ 33215125Sed clzsi2 \ 34215125Sed clzti2 \ 35215125Sed cmpdi2 \ 36215125Sed cmpti2 \ 37215125Sed comparedf2 \ 38215125Sed comparesf2 \ 39215125Sed ctzdi2 \ 40215125Sed ctzsi2 \ 41215125Sed ctzti2 \ 42215125Sed divdc3 \ 43215125Sed divdi3 \ 44222656Sed divmoddi4 \ 45222656Sed divmodsi4 \ 46215125Sed divsc3 \ 47215125Sed divti3 \ 48215125Sed divxc3 \ 49215125Sed enable_execute_stack \ 50215125Sed eprintf \ 51215125Sed ffsdi2 \ 52215125Sed ffsti2 \ 53215125Sed fixdfdi \ 54215125Sed fixdfti \ 55215125Sed fixsfdi \ 56215125Sed fixsfti \ 57215125Sed fixunsdfdi \ 58215125Sed fixunsdfsi \ 59215125Sed fixunsdfti \ 60215125Sed fixunssfdi \ 61215125Sed fixunssfsi \ 62215125Sed fixunssfti \ 63215125Sed fixunsxfdi \ 64215125Sed fixunsxfsi \ 65215125Sed fixunsxfti \ 66215125Sed fixxfdi \ 67215125Sed fixxfti \ 68215125Sed floatdidf \ 69215125Sed floatdisf \ 70215125Sed floatdixf \ 71215125Sed floattidf \ 72215125Sed floattisf \ 73215125Sed floattixf \ 74215125Sed floatundidf \ 75215125Sed floatundisf \ 76215125Sed floatundixf \ 77215125Sed floatunsidf \ 78215125Sed floatunsisf \ 79215125Sed floatuntidf \ 80215125Sed floatuntisf \ 81215125Sed floatuntixf \ 82215125Sed lshrdi3 \ 83215125Sed lshrti3 \ 84215125Sed moddi3 \ 85215125Sed modti3 \ 86215125Sed muldc3 \ 87215125Sed muldi3 \ 88215125Sed mulsc3 \ 89215125Sed multi3 \ 90215125Sed mulvdi3 \ 91215125Sed mulvsi3 \ 92215125Sed mulvti3 \ 93215125Sed mulxc3 \ 94215125Sed negdf2 \ 95215125Sed negdi2 \ 96215125Sed negsf2 \ 97215125Sed negti2 \ 98215125Sed negvdi2 \ 99215125Sed negvsi2 \ 100215125Sed negvti2 \ 101215125Sed paritydi2 \ 102215125Sed paritysi2 \ 103215125Sed parityti2 \ 104215125Sed popcountdi2 \ 105215125Sed popcountsi2 \ 106215125Sed popcountti2 \ 107215125Sed powidf2 \ 108215125Sed powisf2 \ 109215125Sed powitf2 \ 110215125Sed powixf2 \ 111215125Sed subvdi3 \ 112215125Sed subvsi3 \ 113215125Sed subvti3 \ 114215125Sed trampoline_setup \ 115215125Sed ucmpdi2 \ 116215125Sed ucmpti2 \ 117215125Sed udivdi3 \ 118215125Sed udivmoddi4 \ 119222656Sed udivmodsi4 \ 120215125Sed udivmodti4 \ 121215125Sed udivti3 \ 122215125Sed umoddi3 \ 123215125Sed umodti3 124215125Sed 125215125Sed# These are already shipped by libc.a on arm and mips 126215125Sed.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" 127215125SedSRCF+= adddf3 \ 128215125Sed addsf3 \ 129215125Sed divdf3 \ 130215125Sed divsf3 \ 131215125Sed divsi3 \ 132215125Sed extendsfdf2 \ 133215125Sed fixdfsi \ 134215125Sed fixsfsi \ 135215125Sed floatsidf \ 136215125Sed floatsisf \ 137215125Sed modsi3 \ 138215125Sed muldf3 \ 139215125Sed mulsf3 \ 140222656Sed subdf3 \ 141222656Sed subsf3 \ 142215125Sed truncdfsf2 \ 143215125Sed udivsi3 \ 144215125Sed umodsi3 145215125Sed.endif 146215125Sed 147215125Sed.for file in ${SRCF} 148215125Sed. if ${MACHINE_CPUARCH} != "arm" && exists(${CRTSRC}/${CRTARCH}/${file}.S) 149215125SedSRCS+= ${file}.S 150215125Sed. else 151215125SedSRCS+= ${file}.c 152215125Sed. endif 153215125Sed.endfor 154215125Sed 155236014Smarius.if ${MACHINE_CPUARCH} != "mips" 156215185Sed. if ${MK_INSTALLLIB} != "no" 157215125SedSYMLINKS+=libcompiler_rt.a ${LIBDIR}/libgcc.a 158215185Sed. endif 159215185Sed. if ${MK_PROFILE} != "no" 160215125SedSYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a 161215185Sed. endif 162215125Sed.endif 163215125Sed 164217393Skib.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || \ 165217393Skib ${MACHINE_CPUARCH} == "powerpc" 166217101SkibAFLAGS+=--noexecstack 167217102SkibACFLAGS+=-Wa,--noexecstack 168217101Skib.endif 169217101Skib 170217101Skib 171215125Sed.include <bsd.lib.mk> 172