NetBSD/lib/csu/mips/Makefile

37 lines
1.0 KiB
Makefile
Raw Normal View History

# $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
1997-03-05 06:45:05 +03:00
OBJS= crt0.o gcrt0.o crtn.o # crtbegin.o crtend.o
CLEANFILES+= core a.out
all: ${OBJS}
1997-03-05 06:45:05 +03:00
crt0.o: crt0.c
@echo "${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}.o
1997-03-05 06:45:05 +03:00
@${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
1997-03-05 06:45:05 +03:00
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
1997-03-05 06:45:05 +03:00
crtn.o: crtend.c
@echo "${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}.o
1997-03-05 06:45:05 +03:00
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
install:
1996-10-18 09:27:38 +04:00
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
1995-01-08 02:21:41 +03:00
${DESTDIR}/usr/lib
1997-05-20 03:24:21 +04:00
ln -f ${DESTDIR}/usr/lib/crt0.o ${DESTDIR}/usr/lib/scrt0.o
.include <bsd.prog.mk>