]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/csu/mips/Makefile
Update releng/11.3 to RC3 as part of the 11.3-RELEASE cycle.
[FreeBSD/FreeBSD.git] / lib / csu / mips / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR:H}/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:H}/common \
9                 -I${SRCTOP}/lib/libc/include
10
11 FILES=          ${OBJS}
12 FILESMODE=      ${LIBMODE}
13 FILESOWN=       ${LIBOWN}
14 FILESGRP=       ${LIBGRP}
15 FILESDIR=       ${LIBDIR}
16 # These FILES qualify as libraries for the purpose of LIBRARIES_ONLY.
17 .undef LIBRARIES_ONLY
18
19 CLEANFILES=     ${OBJS}
20 CLEANFILES+=    crt1.s gcrt1.s Scrt1.s
21
22 # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
23 # directly compiled to .o files.
24
25 crt1.s: crt1.c
26         ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
27         sed ${SED_FIX_NOTE} ${.TARGET}
28
29 crt1.o: crt1.s
30         ${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s
31
32 gcrt1.s: crt1.c
33         ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
34         sed ${SED_FIX_NOTE} ${.TARGET}
35
36 gcrt1.o: gcrt1.s
37         ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s
38
39 Scrt1.s: crt1.c
40         ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c
41         sed ${SED_FIX_NOTE} ${.TARGET}
42
43 Scrt1.o: Scrt1.s
44         ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s
45
46 .include <bsd.lib.mk>