3 .PATH: ${.CURDIR:H}/common
5 SRCS= crt1.c crti.S crtn.S
6 OBJS= ${SRCS:N*.h:R:S/$/.o/g}
7 OBJS+= crtsavres.o Scrt1.o gcrt1.o
8 CFLAGS+= -I${.CURDIR:H}/common \
9 -I${SRCTOP}/lib/libc/include \
10 -mlongcall -DCRT_IRELOC_SUPPRESS
17 # These FILES qualify as libraries for the purpose of LIBRARIES_ONLY.
21 CLEANFILES+= crt1.s crtsavres.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}
30 # On powerpc64 crtsavres is an empty file
35 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} crt1.s
38 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c
39 sed ${SED_FIX_NOTE} ${.TARGET}
42 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s
45 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c
46 sed ${SED_FIX_NOTE} ${.TARGET}
49 ${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s