3 .PATH: ${.CURDIR}/../common
5 SRCS= crt1.c crti.S crtn.S
6 OBJS= ${SRCS:N*.h:R:S/$/.o/g}
8 CFLAGS+= -I${.CURDIR}/../common \
9 -I${.CURDIR}/../../libc/include
14 CLEANFILES+= crt1.s gcrt1.s Scrt1.s
16 # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
17 # directly compiled to .o files.
20 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
21 sed ${SED_FIX_NOTE} ${.TARGET}
24 ${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s
27 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
28 sed ${SED_FIX_NOTE} ${.TARGET}
31 ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s
34 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c
35 sed ${SED_FIX_NOTE} ${.TARGET}
38 ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s
41 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
42 ${OBJS} ${DESTDIR}${LIBDIR}