Deleted Added
full compact
Makefile (209869) Makefile (217375)
1# $FreeBSD: head/lib/csu/powerpc64/Makefile 209869 2010-07-10 03:45:55Z nwhitehorn $
1# $FreeBSD: head/lib/csu/powerpc64/Makefile 217375 2011-01-13 20:44:31Z dim $
2
3.PATH: ${.CURDIR}/../common
4
5SRCS= crt1.c crti.S crtn.S
6OBJS= ${SRCS:N*.h:R:S/$/.o/g}
7OBJS+= gcrt1.o
8CFLAGS+= -Wall -Wno-unused \
9 -I${.CURDIR}/../common \
10 -I${.CURDIR}/../../libc/include
11
12all: ${OBJS}
13
14CLEANFILES= ${OBJS}
2
3.PATH: ${.CURDIR}/../common
4
5SRCS= crt1.c crti.S crtn.S
6OBJS= ${SRCS:N*.h:R:S/$/.o/g}
7OBJS+= gcrt1.o
8CFLAGS+= -Wall -Wno-unused \
9 -I${.CURDIR}/../common \
10 -I${.CURDIR}/../../libc/include
11
12all: ${OBJS}
13
14CLEANFILES= ${OBJS}
15CLEANFILES+= crt1.s gcrt1.s
15
16
16gcrt1.o: crt1.c
17 ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
17# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
18# directly compiled to .o files.
18
19
20crt1.s: crt1.c
21 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
22 sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET}
23
24crt1.o: crt1.s
25 ${CC} ${CFLAGS} -c -o ${.TARGET} crt1.s
26
27gcrt1.s: crt1.c
28 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
29 sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET}
30
31gcrt1.o: gcrt1.s
32 ${CC} ${CFLAGS} -c -o ${.TARGET} gcrt1.s
33
19realinstall:
20 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
21 ${OBJS} ${DESTDIR}${LIBDIR}
22
23.include <bsd.lib.mk>
34realinstall:
35 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
36 ${OBJS} ${DESTDIR}${LIBDIR}
37
38.include <bsd.lib.mk>