Remove building with NOCRYPTO option
[minix.git] / minix / lib / libminc / arch / earm / Makefile.libc.inc
blob353fd325acf76a54915b07825f22b2e9bb8a35eb
1 ########################################################################
3 # Shared libc with userspace (/common/lib/libc)
6 .for f in \
7         memchr.o
8 ${f} ${f:C/\.o/.go/}:   ${LIBCOMMONCDIR}/string/${f:C/\.o/.c/}
9 OBJS+=  ${f}
10 CLEANFILES+= ${f}
11 .endfor
13 .for f in \
14         lshldi3.o
15 ${f} ${f:C/\.o/.go/}:   ${LIBCOMMONCDIR}/quad/${f:C/\.o/.c/}
16 OBJS+=  ${f}
17 CLEANFILES+= ${f}
18 .endfor
20 .for f in \
21         byte_swap_2.o byte_swap_4.o 
22 ${f} ${f:C/\.o/.go/}:   ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.S/}
23 OBJS+=  ${f}
24 CLEANFILES+= ${f}
25 .endfor
27 .for f in \
28         __aeabi_idiv0.o __aeabi_ldiv0.o
29 ${f} ${f:C/\.o/.go/}:   ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.c/}
30 OBJS+=  ${f}
31 CLEANFILES+= ${f}
32 .endfor
34 CPPFLAGS.__aeabi_idiv0.c+= -D_STANDALONE -I${NETBSDSRCDIR}/sys
35 CPPFLAGS.__aeabi_ldiv0.c+= -D_STANDALONE -I${NETBSDSRCDIR}/sys
37 #.for f in \
38 #       __aeabi_ldivmod.o __aeabi_uldivmod.o
39 #${f} ${f:C/\.o/.go/}:  ${LIBCOMMONCARCHDIR}/quad/${f:C/\.o/.S/}
40 #OBJS+= ${f}
41 #CLEANFILES+= ${f}
42 #.endfor
44 .for f in \
45         memcmp.o memcpy.o memmove.o memset.o \
46         strcat.o strchr.o strcmp.o strcpy.o strlcpy.o strlen.o strncpy.o \
47         strncmp.o strrchr.o strcpy_arm.o
48 ${f} ${f:C/\.o/.go/}:   ${LIBCOMMONCARCHDIR}/string/${f:C/\.o/.S/}
49 OBJS+=  ${f}
50 CLEANFILES+= ${f}
51 .endfor
53 CPPFLAGS.strcpy_arm.S+= -DSTRLCPY -D_LIBC
55 ########################################################################
57 # Functions imported directly from libc.
59 .for f in \
60         alloca.o
61 ${f} ${f:C/\.o/.go/}:   ${LIBCARCHDIR}/gen/${f:C/\.o/.S/}
62 OBJS+=  ${f}
63 CLEANFILES+= ${f}
64 .endfor
66 .for f in \
67         __aeabi_dcmpeq.o __aeabi_fcmpeq.o \
68         __aeabi_dcmpge.o __aeabi_fcmpge.o \
69         __aeabi_dcmpgt.o __aeabi_fcmpgt.o \
70         __aeabi_dcmple.o __aeabi_fcmple.o \
71         __aeabi_dcmplt.o __aeabi_fcmplt.o \
72         __aeabi_dcmpun.o __aeabi_fcmpun.o
73 CPPFLAGS.${f:C/\.o/.c/}+= -I${LIBCARCHDIR}/softfloat -I${LIBCDIR}/softfloat
74 CPPFLAGS.${f:C/\.o/.c/}+= -DSOFTFLOAT_FOR_GCC
75 ${f} ${f:C/\.o/.go/}:   ${LIBCARCHDIR}/softfloat/${f:C/\.o/.c/}
76 OBJS+=  ${f}
77 CLEANFILES+= ${f}
78 .endfor
80 .for f in \
81         aeabi_uidivmod.o aeabi_ldivmod.o aeabi_uldivmod.o aeabi_idivmod.o
82 ${f} ${f:C/\.o/.go/}:   ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/${f:C/\.o/.S/}
83 OBJS+=  ${f}
84 CLEANFILES+= ${f}
85 .endfor
87 .for f in \
88         fpgetround.o fpsetround.o fpgetmask.o fpsetmask.o \
89         fpgetsticky.o fpsetsticky.o
90 CPPFLAGS.${f:C/\.o/.c/}+= -I${LIBCARCHDIR}/softfloat -I${LIBCDIR}/softfloat
91 CPPFLAGS.${f:C/\.o/.c/}+= -DSOFTFLOAT_FOR_GCC
92 ${f} ${f:C/\.o/.go/}:   ${LIBCDIR}/softfloat/${f:C/\.o/.c/}
93 OBJS+=  ${f}
94 CLEANFILES+= ${f}
95 .endfor
97 SOFTFLOAT_BITS?=64
98 .for f in \
99         softfloat.o
100 CPPFLAGS.${f:C/\.o/.c/}+= -I${LIBCARCHDIR}/softfloat -I${LIBCDIR}/softfloat
101 CPPFLAGS.${f:C/\.o/.c/}+= -DSOFTFLOAT_FOR_GCC
102 ${f} ${f:C/\.o/.go/}:   ${LIBCDIR}/softfloat/bits${SOFTFLOAT_BITS}/${f:C/\.o/.c/}
103 OBJS+=  ${f}
104 CLEANFILES+= ${f}
105 .endfor
107 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
108 .if (${MACHINE_CPU} == "arm")
109 COPTS.softfloat.c+=     -Wno-enum-compare -fno-tree-vrp
110 .endif
111 .endif