10SN/A# $FreeBSD$ 217051Sprappo 30SN/A.PATH: ${.CURDIR}/../common 40SN/A 50SN/ASRCS= crt1.c crti.S crtn.S 60SN/AOBJS= ${SRCS:N*.h:R:S/$/.o/g} 72362SN/AOBJS+= Scrt1.o gcrt1.o 80SN/ACFLAGS+= -I${.CURDIR}/../common \ 92362SN/A -I${.CURDIR}/../../libc/include 100SN/A 110SN/Aall: ${OBJS} 120SN/A 130SN/ACLEANFILES= ${OBJS} 140SN/ACLEANFILES+= crt1.s gcrt1.s Scrt1.s 150SN/A 160SN/A# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not 170SN/A# directly compiled to .o files. 180SN/A 190SN/Acrt1.s: crt1.c 200SN/A ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c 212362SN/A sed ${SED_FIX_NOTE} ${.TARGET} 222362SN/A 232362SN/Acrt1.o: crt1.s 240SN/A ${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s 250SN/A 2613804Schegargcrt1.s: crt1.c 2713804Schegar ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c 280SN/A sed ${SED_FIX_NOTE} ${.TARGET} 2917051Sprappo 3014900Sredestadgcrt1.o: gcrt1.s 3114900Sredestad ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s 320SN/A 3313804SchegarScrt1.s: crt1.c 340SN/A ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c 350SN/A sed ${SED_FIX_NOTE} ${.TARGET} 360SN/A 3713115SN/AScrt1.o: Scrt1.s 380SN/A ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s 390SN/A 4013115SN/Arealinstall: 410SN/A ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 420SN/A ${OBJS} ${DESTDIR}${LIBDIR} 4313115SN/A 446573SN/A.include <bsd.lib.mk> 450SN/A