1# $FreeBSD$ 2 3.PATH: ${.CURDIR:H}/common 4 5SRCS= crti.S crtn.S 6OBJS= ${SRCS:N*.h:R:S/$/.o/g} 7OBJS+= Scrt1.o crt1.o gcrt1.o 8CFLAGS+= -I${.CURDIR:H}/common \ 9 -I${SRCTOP}/lib/libc/include 10CFLAGS+= -DCRT_IRELOC_SUPPRESS 11 12FILES= ${OBJS} 13FILESMODE= ${LIBMODE} 14FILESOWN= ${LIBOWN} 15FILESGRP= ${LIBGRP} 16FILESDIR= ${LIBDIR} 17# These FILES qualify as libraries for the purpose of LIBRARIES_ONLY. 18.undef LIBRARIES_ONLY 19 20CLEANFILES= ${OBJS} crt1_c.o crt1_s.o gcrt1_c.o Scrt1_c.o 21CLEANFILES+= crtbrand.o ignore_init_note.o 22 23crt1_c.o: crt1_c.c 24 ${CC} ${CFLAGS} -c -o ${.TARGET} ${.CURDIR}/crt1_c.c 25 26crt1.o: crt1_c.o crt1_s.o crtbrand.o ignore_init_note.o 27 ${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} 28 29gcrt1_c.o: crt1_c.c 30 ${CC} ${CFLAGS} -DGCRT -c -o ${.TARGET} ${.CURDIR}/crt1_c.c 31 32gcrt1.o: gcrt1_c.o crt1_s.o crtbrand.o ignore_init_note.o 33 ${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} 34 35Scrt1_c.o: crt1_c.c 36 ${CC} ${CFLAGS} -fPIC -DPIC -c -o ${.TARGET} ${.CURDIR}/crt1_c.c 37 38Scrt1.o: Scrt1_c.o crt1_s.o crtbrand.o ignore_init_note.o 39 ${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} 40 41.include <bsd.lib.mk> 42