NetBSD/lib/csu/mips/Makefile

37 lines
1.0 KiB
Makefile

# $NetBSD: Makefile,v 1.17 1997/10/22 16:02:27 lukem Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/1/93
CPPFLAGS+= -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32
CPPFLAGS+= -I${.CURDIR}/../../../libexec/ld.elf_so
COPTS+= -fPIC
OBJS= crt0.o gcrt0.o crtn.o # crtbegin.o crtend.o
CLEANFILES+= core a.out
all: ${OBJS}
crt0.o: crt0.c
@echo "${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
gcrt0.o: crt0.c
@echo "${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
crtn.o: crtend.c
@echo "${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
${DESTDIR}/usr/lib
ln -f ${DESTDIR}/usr/lib/crt0.o ${DESTDIR}/usr/lib/scrt0.o
.include <bsd.prog.mk>