1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../common 4 5SRCS= crt1.c crti.S crtn.S 6OBJS= ${SRCS:N*.h:R:S/$/.o/g} 7OBJS+= gcrt1.o 8CFLAGS+= -I${.CURDIR}/../common \ 9 -I${.CURDIR}/../../libc/include 10 11all: ${OBJS} 12 13CLEANFILES= ${OBJS} 14 15gcrt1.o: crt1.c 16 ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c 17 18realinstall: 19 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 20 ${OBJS} ${DESTDIR}${LIBDIR} 21 22.include <bsd.lib.mk> 23