etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libminc / arch / i386 / Makefile.libc.inc
blob09a9b3d594ca7ebd5554453f692255fa944de08a
1 ########################################################################
3 # Shared libc with userspace (/common/lib/libc)
5 .for f in \
6         strlcpy.o strncpy.o
7 ${f} ${f:C/\.o/.bc/}:   ${LIBCOMMONCDIR}/string/${f:C/\.o/.c/}
8 ${f} ${f:C/\.o/.go/}:   ${LIBCOMMONCDIR}/string/${f:C/\.o/.c/}
9 OBJS+=  ${f}
10 CLEANFILES+= ${f}
12 .if ${USE_BITCODE:Uno} == "yes"
13 OBJS+=  ${f:C/\.o/.bc/}
14 CLEANFILES+= ${f:C/\.o/.bc/}
15 .endif # ${USE_BITCODE:Uno} == "yes"
16 .endfor
18 CPPFLAGS.strlcpy.c+=            -D_LIBC
20 .for f in \
21         byte_swap_2.o byte_swap_4.o
22 ${f} ${f:C/\.o/.bc/}:   ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.S/}
23 ${f} ${f:C/\.o/.go/}:   ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.S/}
24 OBJS+=  ${f}
25 CLEANFILES+= ${f}
27 .if ${USE_BITCODE:Uno} == "yes"
28 OBJS+=  ${f:C/\.o/.bc/}
29 CLEANFILES+= ${f:C/\.o/.bc/}
30 .endif # ${USE_BITCODE:Uno} == "yes"
31 .endfor
33 .for f in \
34         memchr.o memcmp.o memcpy.o memmove.o memset.o \
35         strcat.o strchr.o strcmp.o strcpy.o strlen.o \
36         strrchr.o
37 ${f} ${f:C/\.o/.bc/}:   ${LIBCOMMONCARCHDIR}/string/${f:C/\.o/.S/}
38 ${f} ${f:C/\.o/.go/}:   ${LIBCOMMONCARCHDIR}/string/${f:C/\.o/.S/}
39 OBJS+=  ${f}
40 CLEANFILES+= ${f}
42 .if ${USE_BITCODE:Uno} == "yes"
43 OBJS+=  ${f:C/\.o/.bc/}
44 CLEANFILES+= ${f:C/\.o/.bc/}
45 .endif # ${USE_BITCODE:Uno} == "yes"
46 .endfor
48 ########################################################################
50 # Functions imported directly from libc.
52 .for f in \
53         alloca.o
54 ${f} ${f:C/\.o/.bc/}:   ${LIBCARCHDIR}/gen/${f:C/\.o/.S/}
55 ${f} ${f:C/\.o/.go/}:   ${LIBCARCHDIR}/gen/${f:C/\.o/.S/}
56 OBJS+=  ${f}
57 CLEANFILES+= ${f}
59 .if ${USE_BITCODE:Uno} == "yes"
60 OBJS+=  ${f:C/\.o/.bc/}
61 CLEANFILES+= ${f:C/\.o/.bc/}
62 .endif # ${USE_BITCODE:Uno} == "yes"
63 .endfor
65 .for f in \
66         strncmp.o
67 ${f} ${f:C/\.o/.bc/}:   ${LIBCARCHDIR}/string/${f:C/\.o/.S/}
68 ${f} ${f:C/\.o/.go/}:   ${LIBCARCHDIR}/string/${f:C/\.o/.S/}
69 OBJS+=  ${f}
70 CLEANFILES+= ${f}
72 .if ${USE_BITCODE:Uno} == "yes"
73 OBJS+=  ${f:C/\.o/.bc/}
74 CLEANFILES+= ${f:C/\.o/.bc/}
75 .endif # ${USE_BITCODE:Uno} == "yes"
76 .endfor