149c5eacbSEd Maste# $FreeBSD$ 249c5eacbSEd Maste 30eaded92SGlen BarberPACKAGE= clibs 449c5eacbSEd MasteSHLIB_NAME= libgcc_s.so.1 56430a5fdSEd MasteSHLIBDIR?= /lib 649c5eacbSEd Maste 72ed1e385SEd MasteMK_SSP= no 849c5eacbSEd MasteWARNS?= 2 949c5eacbSEd Maste 1049c5eacbSEd MasteLDFLAGS+= -nodefaultlibs 112f21ec01SEd MasteLIBADD+= c 1249c5eacbSEd MasteVERSION_MAP= ${.CURDIR}/Version.map 1349c5eacbSEd Maste 1449c5eacbSEd Maste.include "../libcompiler_rt/Makefile.inc" 1549c5eacbSEd Maste.include "../libgcc_eh/Makefile.inc" 1649c5eacbSEd Maste 17b0a39ef0SEnji Cooper# gcc has incompatible internal declarations for __divtc3 and __multc3, but has 18b0a39ef0SEnji Cooper# no option to silence its warning, so make warnings non-fatal. 19b0a39ef0SEnji CooperNO_WERROR.gcc= 20b0a39ef0SEnji Cooper 21bff20752SEd MasteLIBCSRCDIR= ${SRCTOP}/lib/libc 22bff20752SEd MasteLIBMSRCDIR= ${SRCTOP}/lib/msun/src 23bff20752SEd MasteCFLAGS+= -I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/${MACHINE_CPUARCH} 24bff20752SEd MasteCFLAGS+= -I${LIBMSRCDIR} 25bff20752SEd Maste.PATH: ${LIBMSRCDIR} 26bff20752SEd MasteSRCS+= s_fabs.c 27bff20752SEd MasteSRCS+= s_fabsf.c 28bff20752SEd MasteSRCS+= s_fabsl.c 29bff20752SEd MasteSRCS+= s_fmax.c 30bff20752SEd MasteSRCS+= s_fmaxf.c 31bff20752SEd MasteSRCS+= s_logb.c 32bff20752SEd MasteSRCS+= s_logbf.c 33bff20752SEd MasteSRCS+= s_scalbn.c 34bff20752SEd MasteSRCS+= s_scalbnf.c 35*2c4bb7e3SJohn Baldwin 36*2c4bb7e3SJohn Baldwin# Don't include long double routines on architectures where long double 37*2c4bb7e3SJohn Baldwin# is the same size as double. 38*2c4bb7e3SJohn Baldwin.if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "arm" && 39*2c4bb7e3SJohn Baldwin ${MACHINE_CPUARCH} != "powerpc" 40*2c4bb7e3SJohn BaldwinSRCS+= s_fmaxl.c 41*2c4bb7e3SJohn BaldwinSRCS+= s_logbl.c 42bff20752SEd MasteSRCS+= s_scalbnl.c 43*2c4bb7e3SJohn Baldwin.endif 44bff20752SEd Maste 4549c5eacbSEd Maste.include <bsd.lib.mk> 46