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
16 # These FILES qualify as libraries for the purpose of LIBRARIES_ONLY.
20 CLEANFILES+= crt1.s gcrt1.s Scrt1.s
22 # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
23 # directly compiled to .o files.
26 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
27 sed ${SED_FIX_NOTE} ${.TARGET}
30 ${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s
33 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
34 sed ${SED_FIX_NOTE} ${.TARGET}
37 ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s
40 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c
41 sed ${SED_FIX_NOTE} ${.TARGET}
44 ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s