8259dd08d6
use INCS variable to install includes and FILES to install objects.
42 lines
1.0 KiB
Makefile
42 lines
1.0 KiB
Makefile
# $NetBSD: Makefile,v 1.19 1997/03/24 22:11:50 christos Exp $
|
|
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
|
|
|
|
CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
|
|
OBJS= crt0.o gcrt0.o scrt0.o
|
|
SRCS= crt0.c
|
|
|
|
all: ${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 ${.TARGET}.o -o ${.TARGET}
|
|
@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 ${.TARGET}.o -o ${.TARGET}
|
|
@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 ${.TARGET}.o -o ${.TARGET}
|
|
@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>
|