NetBSD/lib/csu/i386/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

42 lines
1020 B
Makefile

# $NetBSD: Makefile,v 1.23 1997/10/22 16:01:50 lukem Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
CPPFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
OBJS= crt0.o gcrt0.o scrt0.o
SRCS= crt0.c
all: ${OBJS}
crt0.o: ${SRCS}
@echo "${COMPILE.c} -DCRT0 -DDYNAMIC ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} -DCRT0 -DDYNAMIC ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
gcrt0.o: ${SRCS}
@echo "${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
scrt0.o: ${SRCS}
@echo "${COMPILE.c} -DSCRT0 ${.ALLSRC} -o ${.TARGET}"
@${COMPILE.c} -DSCRT0 ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if make(depend)
CPPFLAGS+= -DDYNAMIC
.endif
afterdepend: .depend
@(TMP=/tmp/_depend$$$$; \
sed -e 's/^\([^\.]*\).o[ ]*:/\1.o g\1.o s\1.o:/' \
< .depend > $$TMP; \
mv $$TMP .depend)
FILES=${OBJS}
FILESDIR=/usr/lib
.include <bsd.prog.mk>