# $OpenBSD: Makefile,v 1.2 2009/10/27 23:59:58 deraadt Exp $ #CFLAGS+= -I${.CURDIR} -mips2 CFLAGS+= -I${.CURDIR} OBJS= crt0.o gcrt0.o scrt0.o crtbegin.o crtend.o crtbeginS.o crtendS.o .PATH: ${.CURDIR}/../common_elf all: ${OBJS} crt0.o: crt0.c ${DEPS} @echo "${CC} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}" @${CC} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}.o @${LD} -x -r ${.TARGET}.o -o ${.TARGET} @rm -f ${.TARGET}.o gcrt0.o: crt0.c ${DEPS} @echo "${CC} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}" @${CC} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}.o @${LD} -x -r ${.TARGET}.o -o ${.TARGET} @rm -f ${.TARGET}.o scrt0.o: crt0.c ${DEPS} @echo "${CC} -DSCRT0 -c ${.ALLSRC} -o ${.TARGET}" @${CC} -DSCRT0 -c ${.ALLSRC} -o ${.TARGET}.o @${LD} -x -r ${.TARGET}.o -o ${.TARGET} @rm -f ${.TARGET}.o realinstall: ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ ${DESTDIR}/usr/lib depend lint tags: .include