NetBSD/lib/csu/common_aout/Makefile.inc

42 lines
1.1 KiB
PHP
Raw Normal View History

2000-01-22 22:37:57 +03:00
# $NetBSD: Makefile.inc,v 1.4 2000/01/22 19:37:57 mycroft Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
1999-03-20 01:50:20 +03:00
CPPFLAGS+= -DLIBC_SCCS -I${.CURDIR}/../common_aout
OBJS+= crt0.o gcrt0.o scrt0.o
SRCS= crt0.c
2000-01-22 22:37:57 +03:00
realall: ${OBJS}
crt0.o: ${SRCS}
@echo "${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
gcrt0.o: ${SRCS}
@echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
scrt0.o: ${SRCS}
@echo "${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -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>