Makefile revision 217101
1215125Sed# $FreeBSD: head/lib/libcompiler_rt/Makefile 217101 2011-01-07 14:35:45Z kib $ 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 \ 44215125Sed divsc3 \ 45215125Sed divti3 \ 46215125Sed divxc3 \ 47215125Sed enable_execute_stack \ 48215125Sed eprintf \ 49215125Sed ffsdi2 \ 50215125Sed ffsti2 \ 51215125Sed fixdfdi \ 52215125Sed fixdfti \ 53215125Sed fixsfdi \ 54215125Sed fixsfti \ 55215125Sed fixunsdfdi \ 56215125Sed fixunsdfsi \ 57215125Sed fixunsdfti \ 58215125Sed fixunssfdi \ 59215125Sed fixunssfsi \ 60215125Sed fixunssfti \ 61215125Sed fixunsxfdi \ 62215125Sed fixunsxfsi \ 63215125Sed fixunsxfti \ 64215125Sed fixxfdi \ 65215125Sed fixxfti \ 66215125Sed floatdidf \ 67215125Sed floatdisf \ 68215125Sed floatdixf \ 69215125Sed floattidf \ 70215125Sed floattisf \ 71215125Sed floattixf \ 72215125Sed floatundidf \ 73215125Sed floatundisf \ 74215125Sed floatundixf \ 75215125Sed floatunsidf \ 76215125Sed floatunsisf \ 77215125Sed floatuntidf \ 78215125Sed floatuntisf \ 79215125Sed floatuntixf \ 80215125Sed lshrdi3 \ 81215125Sed lshrti3 \ 82215125Sed moddi3 \ 83215125Sed modti3 \ 84215125Sed muldc3 \ 85215125Sed muldi3 \ 86215125Sed mulsc3 \ 87215125Sed multi3 \ 88215125Sed mulvdi3 \ 89215125Sed mulvsi3 \ 90215125Sed mulvti3 \ 91215125Sed mulxc3 \ 92215125Sed negdf2 \ 93215125Sed negdi2 \ 94215125Sed negsf2 \ 95215125Sed negti2 \ 96215125Sed negvdi2 \ 97215125Sed negvsi2 \ 98215125Sed negvti2 \ 99215125Sed paritydi2 \ 100215125Sed paritysi2 \ 101215125Sed parityti2 \ 102215125Sed popcountdi2 \ 103215125Sed popcountsi2 \ 104215125Sed popcountti2 \ 105215125Sed powidf2 \ 106215125Sed powisf2 \ 107215125Sed powitf2 \ 108215125Sed powixf2 \ 109215125Sed subvdi3 \ 110215125Sed subvsi3 \ 111215125Sed subvti3 \ 112215125Sed trampoline_setup \ 113215125Sed ucmpdi2 \ 114215125Sed ucmpti2 \ 115215125Sed udivdi3 \ 116215125Sed udivmoddi4 \ 117215125Sed udivmodti4 \ 118215125Sed udivti3 \ 119215125Sed umoddi3 \ 120215125Sed umodti3 121215125Sed 122215125Sed# These are already shipped by libc.a on arm and mips 123215125Sed.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" 124215125SedSRCF+= adddf3 \ 125215125Sed addsf3 \ 126215125Sed divdf3 \ 127215125Sed divsf3 \ 128215125Sed divsi3 \ 129215125Sed extendsfdf2 \ 130215125Sed fixdfsi \ 131215125Sed fixsfsi \ 132215125Sed floatsidf \ 133215125Sed floatsisf \ 134215125Sed modsi3 \ 135215125Sed muldf3 \ 136215125Sed mulsf3 \ 137215125Sed truncdfsf2 \ 138215125Sed udivsi3 \ 139215125Sed umodsi3 140215125Sed.endif 141215125Sed 142215125Sed.for file in ${SRCF} 143215125Sed. if ${MACHINE_CPUARCH} != "arm" && exists(${CRTSRC}/${CRTARCH}/${file}.S) 144215125SedSRCS+= ${file}.S 145215125Sed. else 146215125SedSRCS+= ${file}.c 147215125Sed. endif 148215125Sed.endfor 149215125Sed 150216804Skan.if ${MACHINE_CPUARCH} != "sparc64" && ${MACHINE_CPUARCH} != "mips" 151215185Sed. if ${MK_INSTALLLIB} != "no" 152215125SedSYMLINKS+=libcompiler_rt.a ${LIBDIR}/libgcc.a 153215185Sed. endif 154215185Sed. if ${MK_PROFILE} != "no" 155215125SedSYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a 156215185Sed. endif 157215125Sed.endif 158215125Sed 159217101Skib.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 160217101SkibAFLAGS+=--noexecstack 161217101SkibACFLAGS+=-Wl,a,--noexecstack 162217101Skib.endif 163217101Skib 164217101Skib 165215125Sed.include <bsd.lib.mk> 166