]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/csu/arm/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / csu / arm / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../common
4
5 SRCS=           crt1.c crti.S crtn.S
6 OBJS=           ${SRCS:N*.h:R:S/$/.o/g}
7 OBJS+=          Scrt1.o gcrt1.o
8 CFLAGS+=        -I${.CURDIR}/../common \
9                 -I${.CURDIR}/../../libc/include
10
11 all: ${OBJS}
12
13 CLEANFILES=     ${OBJS}
14 CLEANFILES+=    crt1.s gcrt1.s Scrt1.s
15
16 # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
17 # directly compiled to .o files.
18
19 crt1.s: crt1.c
20         ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
21         sed ${SED_FIX_NOTE} ${.TARGET}
22
23 crt1.o: crt1.s
24         ${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s
25
26 gcrt1.s: crt1.c
27         ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
28         sed ${SED_FIX_NOTE} ${.TARGET}
29
30 gcrt1.o: gcrt1.s
31         ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s
32
33 Scrt1.s: crt1.c
34         ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c
35         sed ${SED_FIX_NOTE} ${.TARGET}
36
37 Scrt1.o: Scrt1.s
38         ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s
39
40 realinstall:
41         ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
42             ${OBJS} ${DESTDIR}${LIBDIR}
43
44 .include <bsd.lib.mk>