3 .PATH: ${.CURDIR}/../common
6 OBJS= ${SRCS:N*.h:R:S/$/.o/g}
7 OBJS+= crt1.o gcrt1.o Scrt1.o
12 CLEANFILES+= crt1_.o gcrt1_.o Scrt1_.o
13 CLEANFILES+= crtbrand.o gcrtbrand.o Scrtbrand.o
14 CLEANFILES+= crtbrand.s gcrtbrand.s Scrtbrand.s
17 ${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.
22 crtbrand.s: crtbrand.c
23 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.ALLSRC}
24 sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET}
26 crtbrand.o: crtbrand.s
27 ${CC} ${ACFLAGS} -c -o ${.TARGET} crtbrand.s
29 crt1.o: crt1_.o crtbrand.o
30 ${LD} ${LDFLAGS} -r -o ${.TARGET} crt1_.o crtbrand.o
33 ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.ALLSRC}
35 gcrtbrand.s: crtbrand.c
36 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.ALLSRC}
37 sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET}
39 gcrtbrand.o: gcrtbrand.s
40 ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrtbrand.s
42 gcrt1.o: gcrt1_.o gcrtbrand.o
43 ${LD} ${LDFLAGS} -r -o ${.TARGET} ${.ALLSRC}
46 ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.ALLSRC}
48 Scrtbrand.s: crtbrand.c
49 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.ALLSRC}
50 sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET}
52 Scrtbrand.o: Scrtbrand.s
53 ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrtbrand.s
55 Scrt1.o: Scrt1_.o Scrtbrand.o
56 ${LD} ${LDFLAGS} -r -o ${.TARGET} ${.ALLSRC}
59 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
60 ${OBJS} ${DESTDIR}${LIBDIR}