summaryrefslogtreecommitdiff
path: root/lib/csu/mips64/Makefile
blob: 88ad351fd70f45610322e455290e6ac36d958632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#	$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 <bsd.prog.mk>