summaryrefslogtreecommitdiff
path: root/lib/csu/hppa/Makefile
blob: 4744524bde7fc484e2f56cb946cafae8b8f4804e (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
#	$OpenBSD: Makefile,v 1.1 2001/08/19 19:57:54 mickey Exp $

CFLAGS+=	-DLIBC_SCCS -DELFSIZE=32 -I${.CURDIR}/..

#OBJS=		crt0.o gcrt0.o
OBJS=	crt0.o
SRCS=	crt0.c
NOPROFILE=noprofile
NOPIC=	nopic
NOMAN=	noman

CLEANFILES+=	core a.out

all:	${OBJS}

crt0.o:	${SRCS}
	@echo ${COMPILE.c} -DCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}
	@${COMPILE.c} -DCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
	@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@rm -f ${.TARGET}.o

install:
	${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
		${DESTDIR}/usr/lib

.include <bsd.prog.mk>