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+= -elf -Wall \ 9 -I${.CURDIR}/../common \ 10 -I${.CURDIR}/../../libc/include 11LDFLAGS+= -elf 12 13all: ${OBJS} 14 15CLEANFILES= ${OBJS} 16 17gcrt1.o: crt1.c 18 ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c 19 20realinstall: 21 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 22 ${OBJS} ${DESTDIR}${LIBDIR} 23 24.include <bsd.lib.mk> 25