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
10 CFLAGS+= -fno-omit-frame-pointer
17 # These FILES qualify as libraries for the purpose of LIBRARIES_ONLY.
21 CLEANFILES+= crt1.s gcrt1.s Scrt1.s
23 # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
24 # directly compiled to .o files.
27 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c
28 sed ${SED_FIX_NOTE} ${.TARGET}
31 ${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s
34 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
35 sed ${SED_FIX_NOTE} ${.TARGET}
38 ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s
41 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c
42 sed ${SED_FIX_NOTE} ${.TARGET}
45 ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s