1# $FreeBSD: head/lib/csu/ia64/Makefile 216351 2010-12-10 08:53:06Z tijl $
| 1# $FreeBSD: head/lib/csu/ia64/Makefile 217375 2011-01-13 20:44:31Z dim $
|
2 3.PATH: ${.CURDIR}/../common 4 5SRCS= crti.S crtn.S 6OBJS= ${SRCS:N*.h:R:S/$/.o/g} 7OBJS+= crt1.o gcrt1.o Scrt1.o 8 9all: ${OBJS} 10 11CLEANFILES= ${OBJS} 12CLEANFILES+= crt1_.o gcrt1_.o Scrt1_.o 13CLEANFILES+= crtbrand.o gcrtbrand.o Scrtbrand.o
| 2 3.PATH: ${.CURDIR}/../common 4 5SRCS= crti.S crtn.S 6OBJS= ${SRCS:N*.h:R:S/$/.o/g} 7OBJS+= crt1.o gcrt1.o Scrt1.o 8 9all: ${OBJS} 10 11CLEANFILES= ${OBJS} 12CLEANFILES+= crt1_.o gcrt1_.o Scrt1_.o 13CLEANFILES+= crtbrand.o gcrtbrand.o Scrtbrand.o
|
| 14CLEANFILES+= crtbrand.s gcrtbrand.s Scrtbrand.s
|
14 15crt1_.o: crt1.S 16 ${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC} 17
| 15 16crt1_.o: crt1.S 17 ${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC} 18
|
18crtbrand.o: crtbrand.c 19 ${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}
| 19# See the comment in lib/csu/common/crtbrand.c for the reason crtbrand.c is not 20# directly compiled to .o files.
|
20
| 21
|
| 22crtbrand.s: crtbrand.c 23 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.ALLSRC} 24 sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET} 25 26crtbrand.o: crtbrand.s 27 ${CC} ${CFLAGS} -c -o ${.TARGET} crtbrand.s 28
|
21crt1.o: crt1_.o crtbrand.o 22 ${LD} ${LDFLAGS} -r -o ${.TARGET} crt1_.o crtbrand.o 23 24gcrt1_.o: crt1.S 25 ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.ALLSRC} 26
| 29crt1.o: crt1_.o crtbrand.o 30 ${LD} ${LDFLAGS} -r -o ${.TARGET} crt1_.o crtbrand.o 31 32gcrt1_.o: crt1.S 33 ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.ALLSRC} 34
|
27gcrtbrand.o: crtbrand.c 28 ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.ALLSRC}
| 35gcrtbrand.s: crtbrand.c 36 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.ALLSRC} 37 sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET}
|
29
| 38
|
| 39gcrtbrand.o: gcrtbrand.s 40 ${CC} ${CFLAGS} -c -o ${.TARGET} gcrtbrand.s 41
|
30gcrt1.o: gcrt1_.o gcrtbrand.o 31 ${LD} ${LDFLAGS} -r -o ${.TARGET} ${.ALLSRC} 32 33Scrt1_.o: crt1.S 34 ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.ALLSRC} 35
| 42gcrt1.o: gcrt1_.o gcrtbrand.o 43 ${LD} ${LDFLAGS} -r -o ${.TARGET} ${.ALLSRC} 44 45Scrt1_.o: crt1.S 46 ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.ALLSRC} 47
|
36Scrtbrand.o: crtbrand.c 37 ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.ALLSRC}
| 48Scrtbrand.s: crtbrand.c 49 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.ALLSRC} 50 sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET}
|
38
| 51
|
| 52Scrtbrand.o: Scrtbrand.s 53 ${CC} ${CFLAGS} -c -o ${.TARGET} Scrtbrand.s 54
|
39Scrt1.o: Scrt1_.o Scrtbrand.o 40 ${LD} ${LDFLAGS} -r -o ${.TARGET} ${.ALLSRC} 41 42realinstall: 43 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 44 ${OBJS} ${DESTDIR}${LIBDIR} 45 46.include <bsd.lib.mk>
| 55Scrt1.o: Scrt1_.o Scrtbrand.o 56 ${LD} ${LDFLAGS} -r -o ${.TARGET} ${.ALLSRC} 57 58realinstall: 59 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 60 ${OBJS} ${DESTDIR}${LIBDIR} 61 62.include <bsd.lib.mk>
|