tools/llvm: Do not build with symbols
[minix3.git] / lib / libc / compiler_rt / Makefile.inc
blobb7183e40f4ba74f2c2738d5e42a1283249899e61
1 # $NetBSD: Makefile.inc,v 1.1 2013/07/04 22:14:43 joerg Exp $
3 COMPILER_RT_SRCDIR=     ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
5 .if ${MACHINE_ARCH} == "powerpc"
6 COMPILER_RT_CPU_DIR=    ${COMPILER_RT_SRCDIR}/lib/ppc
7 COMPILER_RT_ARCH_DIR=   ${COMPILER_RT_SRCDIR}/lib/ppc
8 .else
9 COMPILER_RT_CPU_DIR=    ${COMPILER_RT_SRCDIR}/lib/${MACHINE_CPU}
10 COMPILER_RT_ARCH_DIR=   ${COMPILER_RT_SRCDIR}/lib/${MACHINE_ARCH}
11 .endif
14 .if !defined(__MINIX)
15 .PATH: ${COMPILER_RT_CPU_DIR}
16 .PATH: ${COMPILER_RT_ARCH_DIR}
17 .endif # !defined(__MINIX)
18 .PATH: ${COMPILER_RT_SRCDIR}/lib
20 # Complex support needs parts of libm
21 #GENERIC_SRCS+=
22 #       mulxc3.c \
23 #       mulsc3.c \
24 #       divxc3.c \
25 #       divdc3.c \
26 #       divsc3.c
28 GENERIC_SRCS+= \
29         absvdi2.c \
30         absvsi2.c \
31         absvti2.c \
32         adddf3.c \
33         addsf3.c \
34         addvdi3.c \
35         addvsi3.c \
36         addvti3.c \
37         ashldi3.c \
38         ashlti3.c \
39         ashrdi3.c \
40         ashrti3.c \
41         atomic.c \
42         clzdi2.c \
43         clzsi2.c \
44         clzti2.c \
45         cmpdi2.c \
46         cmpti2.c \
47         comparedf2.c \
48         comparesf2.c \
49         ctzdi2.c \
50         ctzsi2.c \
51         ctzti2.c \
52         divdf3.c \
53         divdi3.c \
54         divmoddi4.c \
55         divmodsi4.c \
56         divsf3.c \
57         divsi3.c \
58         divti3.c \
59         extendsfdf2.c \
60         ffsdi2.c \
61         ffsti2.c \
62         fixdfdi.c \
63         fixdfsi.c \
64         fixdfti.c \
65         fixsfdi.c \
66         fixsfsi.c \
67         fixsfti.c \
68         fixunsdfdi.c \
69         fixunsdfsi.c \
70         fixunsdfti.c \
71         fixunssfdi.c \
72         fixunssfsi.c \
73         fixunssfti.c \
74         fixunsxfdi.c \
75         fixunsxfsi.c \
76         fixunsxfti.c \
77         fixxfdi.c \
78         fixxfti.c \
79         floatdidf.c \
80         floatdisf.c \
81         floatdixf.c \
82         floatsidf.c \
83         floatsisf.c \
84         floattidf.c \
85         floattisf.c \
86         floattixf.c \
87         floatundidf.c \
88         floatundisf.c \
89         floatundixf.c \
90         floatunsidf.c \
91         floatunsisf.c \
92         floatuntidf.c \
93         floatuntisf.c \
94         floatuntixf.c \
95         gcc_personality_v0.c \
96         int_util.c \
97         lshrdi3.c \
98         lshrti3.c \
99         moddi3.c \
100         modsi3.c \
101         modti3.c \
102         muldc3.c \
103         muldf3.c \
104         muldi3.c \
105         mulodi4.c \
106         mulosi4.c \
107         muloti4.c \
108         mulsf3.c \
109         multi3.c \
110         mulvdi3.c \
111         mulvsi3.c \
112         mulvti3.c \
113         negdf2.c \
114         negdi2.c \
115         negsf2.c \
116         negti2.c \
117         negvdi2.c \
118         negvsi2.c \
119         negvti2.c \
120         paritydi2.c \
121         paritysi2.c \
122         parityti2.c \
123         popcountdi2.c \
124         popcountsi2.c \
125         popcountti2.c \
126         powidf2.c \
127         powisf2.c \
128         powitf2.c \
129         powixf2.c \
130         subdf3.c \
131         subsf3.c \
132         subvdi3.c \
133         subvsi3.c \
134         subvti3.c \
135         truncdfsf2.c \
136         ucmpdi2.c \
137         ucmpti2.c \
138         udivdi3.c \
139         udivmoddi4.c \
140         udivmodsi4.c \
141         udivmodti4.c \
142         udivsi3.c \
143         udivti3.c \
144         umoddi3.c \
145         umodsi3.c \
146         umodti3.c
148 .if ${MACHINE_ARCH} == "powerpc"
149 GENERIC_SRCS+= \
150         fixtfdi.c \
151         fixunstfdi.c \
152         floatditf.c \
153         floatunditf.c \
154         gcc_qadd.c \
155         gcc_qdiv.c \
156         gcc_qmul.c \
157         gcc_qsub.c
158 .endif
160 .if !defined(__MINIX)
161 .for src in ${GENERIC_SRCS}
162 .  if exists(${COMPILER_RT_CPU_DIR}/${src:R}.S) || \
163       exists(${COMPILER_RT_ARCH_DIR}/${src:R}.S)
164 SRCS+=  ${src:R}.S
165 .  else
166 SRCS+=  ${src}
167 COPTS.${src}+=  -Wno-error=missing-prototypes
168 .  endif
169 .endfor
170 .else
171 # For MINIX: do not pull in the assembly symbols, as they are not PIC ready
172 .for src in ${GENERIC_SRCS}
173 SRCS+=  ${src}
174 COPTS.${src}+=  -Wno-error=missing-prototypes
175 .endfor
177 .for src in muldc3.c
178 COPTS.${src}+=  -fbuiltin
179 .endfor
180 .endif # !defined(__MINIX)