]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/csu/powerpc64/Makefile
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / lib / csu / powerpc64 / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR:H}/common
4
5 SRCS=           crti.S crtn.S
6 OBJS=           ${SRCS:N*.h:R:S/$/.o/g}
7 OBJS+=          Scrt1.o crt1.o crtsavres.o gcrt1.o
8 CFLAGS+=        -I${.CURDIR} -I${.CURDIR:H}/common \
9                 -I${SRCTOP}/lib/libc/include \
10                 -mlongcall -DCRT_IRELOC_RELA
11
12 FILES=          ${OBJS}
13 FILESMODE=      ${LIBMODE}
14 FILESOWN=       ${LIBOWN}
15 FILESGRP=       ${LIBGRP}
16 FILESDIR=       ${LIBDIR}
17 # These FILES qualify as libraries for the purpose of LIBRARIES_ONLY.
18 .undef LIBRARIES_ONLY
19
20 CLEANFILES=     ${OBJS} crt1_c.o gcrt1_c.o Scrt1_c.o
21 CLEANFILES+=    crtbrand.o ignore_init_note.o
22 CLEANFILES+=    crtsavres.S
23
24 # On powerpc64 crtsavres is an empty file
25 crtsavres.S:
26         touch ${.TARGET}
27
28 gcrt1_c.o: crt1_c.c
29         ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.CURDIR}/crt1_c.c
30
31 gcrt1.o: gcrt1_c.o crtbrand.o ignore_init_note.o
32         ${LD} ${_LDFLAGS} -o gcrt1.o -r crtbrand.o ignore_init_note.o gcrt1_c.o
33
34 crt1.o: crt1_c.o crtbrand.o ignore_init_note.o
35         ${LD} ${_LDFLAGS} -o crt1.o -r crtbrand.o ignore_init_note.o crt1_c.o
36
37 Scrt1_c.o: crt1_c.c
38         ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.CURDIR}/crt1_c.c
39
40 Scrt1.o: Scrt1_c.o crtbrand.o ignore_init_note.o
41         ${LD} ${_LDFLAGS} -o Scrt1.o -r crtbrand.o ignore_init_note.o Scrt1_c.o
42
43 .include <bsd.lib.mk>