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 12NOMAN= true 13NOPIC= true 14NOPROFILE= true 15INTERNALLIB= true 16 17 18all: ${OBJS} ${SOBJS} 19 20gcrt1.o: crt1.c 21 ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c 22 23realinstall: 24.for file in ${OBJS} ${SOBJS} 25 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 26 ${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/} 27.endfor 28 29.include <bsd.lib.mk> 30