]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libcompiler_rt/Makefile
Merge Cavium Octeon SDK 2.0 Simple Executive; this brings some fixes and new
[FreeBSD/FreeBSD.git] / lib / libcompiler_rt / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 LIB=    compiler_rt
6 NO_PIC=
7 WARNS?= 2
8
9 CFLAGS+=${PICFLAG} -fvisibility=hidden -DVISIBILITY_HIDDEN
10
11 .if ${MACHINE_CPUARCH} == "amd64"
12 CRTARCH=x86_64
13 .else
14 CRTARCH=${MACHINE_CPUARCH}
15 .endif
16
17 CRTSRC=${.CURDIR}/../../contrib/compiler-rt/lib
18
19 .PATH: ${CRTSRC}/${CRTARCH} ${CRTSRC}
20
21 SRCF=   absvdi2 \
22         absvsi2 \
23         absvti2 \
24         addvdi3 \
25         addvsi3 \
26         addvti3 \
27         ashldi3 \
28         ashlti3 \
29         ashrdi3 \
30         ashrti3 \
31         clear_cache \
32         clzdi2 \
33         clzsi2 \
34         clzti2 \
35         cmpdi2 \
36         cmpti2 \
37         comparedf2 \
38         comparesf2 \
39         ctzdi2 \
40         ctzsi2 \
41         ctzti2 \
42         divdc3 \
43         divdi3 \
44         divsc3 \
45         divti3 \
46         divxc3 \
47         enable_execute_stack \
48         eprintf \
49         ffsdi2 \
50         ffsti2 \
51         fixdfdi \
52         fixdfti \
53         fixsfdi \
54         fixsfti \
55         fixunsdfdi \
56         fixunsdfsi \
57         fixunsdfti \
58         fixunssfdi \
59         fixunssfsi \
60         fixunssfti \
61         fixunsxfdi \
62         fixunsxfsi \
63         fixunsxfti \
64         fixxfdi \
65         fixxfti \
66         floatdidf \
67         floatdisf \
68         floatdixf \
69         floattidf \
70         floattisf \
71         floattixf \
72         floatundidf \
73         floatundisf \
74         floatundixf \
75         floatunsidf \
76         floatunsisf \
77         floatuntidf \
78         floatuntisf \
79         floatuntixf \
80         lshrdi3 \
81         lshrti3 \
82         moddi3 \
83         modti3 \
84         muldc3 \
85         muldi3 \
86         mulsc3 \
87         multi3 \
88         mulvdi3 \
89         mulvsi3 \
90         mulvti3 \
91         mulxc3 \
92         negdf2 \
93         negdi2 \
94         negsf2 \
95         negti2 \
96         negvdi2 \
97         negvsi2 \
98         negvti2 \
99         paritydi2 \
100         paritysi2 \
101         parityti2 \
102         popcountdi2 \
103         popcountsi2 \
104         popcountti2 \
105         powidf2 \
106         powisf2 \
107         powitf2 \
108         powixf2 \
109         subvdi3 \
110         subvsi3 \
111         subvti3 \
112         trampoline_setup \
113         ucmpdi2 \
114         ucmpti2 \
115         udivdi3 \
116         udivmoddi4 \
117         udivmodti4 \
118         udivti3 \
119         umoddi3 \
120         umodti3
121
122 # These are already shipped by libc.a on arm and mips
123 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
124 SRCF+=  adddf3 \
125         addsf3 \
126         divdf3 \
127         divsf3 \
128         divsi3 \
129         extendsfdf2 \
130         fixdfsi \
131         fixsfsi \
132         floatsidf \
133         floatsisf \
134         modsi3 \
135         muldf3 \
136         mulsf3 \
137         truncdfsf2 \
138         udivsi3 \
139         umodsi3
140 .endif
141
142 .for file in ${SRCF}
143 . if ${MACHINE_CPUARCH} != "arm" && exists(${CRTSRC}/${CRTARCH}/${file}.S)
144 SRCS+=  ${file}.S
145 . else
146 SRCS+=  ${file}.c
147 . endif
148 .endfor
149
150 .if ${MACHINE_CPUARCH} != "sparc64"
151 . if ${MK_INSTALLLIB} != "no"
152 SYMLINKS+=libcompiler_rt.a ${LIBDIR}/libgcc.a
153 . endif
154 . if ${MK_PROFILE} != "no"
155 SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
156 . endif
157 .endif
158
159 .include <bsd.lib.mk>