NetBSD/lib/csu/vax/Makefile
lukem 6bf85c9ba3 * use CPPFLAGS instead of CFLAGS for -D and -I options
* use COPTS instead of CFLAGS for -fPIC et al
* use ${COMPILE.c} instead of ${CC} ${CFLAGS} -c
* use FILES and FILESDIR to install pc532 objects (instead of install: rule) -
  this makes it consistent with the other a.out ports (arm32, i386, m68k, sparc)
1997-10-22 16:00:39 +00:00

30 lines
652 B
Makefile

# $NetBSD: Makefile,v 1.9 1997/10/22 16:03:51 lukem Exp $
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
CPPFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
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:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
${DESTDIR}/usr/lib
.include <bsd.prog.mk>