1997-10-22 20:00:39 +04:00
|
|
|
# $NetBSD: Makefile,v 1.9 1997/10/22 16:03:51 lukem Exp $
|
1995-12-12 11:04:47 +03:00
|
|
|
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
|
|
|
|
|
1997-10-22 20:00:39 +04:00
|
|
|
CPPFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
|
1995-12-12 11:04:47 +03:00
|
|
|
OBJS= crt0.o gcrt0.o scrt0.o
|
|
|
|
CLEANFILES+= core a.out
|
|
|
|
|
|
|
|
all: ${OBJS}
|
|
|
|
|
|
|
|
crt0.o: crt0.c
|
|
|
|
${COMPILE.c} -DCRT0 -UDYNAMIC ${.ALLSRC}
|
|
|
|
${LD} -x -r ${.TARGET}
|
|
|
|
mv a.out ${.TARGET}
|
|
|
|
|
|
|
|
gcrt0.o: crt0.c
|
|
|
|
${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}
|
|
|
|
${LD} -x -r ${.TARGET}
|
|
|
|
mv a.out ${.TARGET}
|
|
|
|
|
|
|
|
scrt0.o: crt0.c
|
|
|
|
${COMPILE.c} -DSCRT0 ${.ALLSRC} -o ${.TARGET}
|
|
|
|
${LD} -x -r ${.TARGET}
|
|
|
|
mv a.out ${.TARGET}
|
|
|
|
|
|
|
|
install:
|
1996-10-18 09:27:38 +04:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
|
1995-12-12 11:04:47 +03:00
|
|
|
${DESTDIR}/usr/lib
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|