1996-09-13 06:24:30 +04:00
|
|
|
# $NetBSD: Makefile,v 1.6 1996/09/13 02:24:30 jtk Exp $
|
1996-08-26 03:38:57 +04:00
|
|
|
|
1996-09-09 22:07:40 +04:00
|
|
|
CPPFLAGS= ${APMCPPFLAGS}
|
1996-09-13 04:02:36 +04:00
|
|
|
CFLAGS+= -I${.CURDIR}/../.. -I${.CURDIR}/../../..
|
1996-08-26 03:38:57 +04:00
|
|
|
|
1996-09-09 22:07:40 +04:00
|
|
|
SRCS= biostramp.S
|
|
|
|
OBJS= biostramp.o
|
|
|
|
DEPS= ${APMDEPS}
|
1996-09-13 04:02:36 +04:00
|
|
|
STRIP?= strip
|
|
|
|
|
|
|
|
all: biostramp.inc
|
1996-08-26 03:38:57 +04:00
|
|
|
|
1996-09-08 19:36:51 +04:00
|
|
|
biostramp.inc: biostramp Makefile
|
1996-09-13 04:02:36 +04:00
|
|
|
-mv -f biostramp.inc biostramp.inc.bak
|
1996-09-09 22:07:40 +04:00
|
|
|
sh ${.CURDIR}/bin2asm.sh biostramp > biostramp.inc
|
1996-09-08 19:36:51 +04:00
|
|
|
|
1996-09-09 22:07:40 +04:00
|
|
|
biostramp: ${OBJS} ${DEPS}
|
|
|
|
${LD} -Bstatic -N -T 0 -o biostramp $(OBJS)
|
1996-09-08 19:36:51 +04:00
|
|
|
cp biostramp biostramp.sym
|
1996-09-09 22:07:40 +04:00
|
|
|
@${STRIP} biostramp
|
1996-09-13 06:24:30 +04:00
|
|
|
@if [ `ls -l biostramp |awk '{print $$5}'` -gt 4096 ]; then \
|
1996-09-08 19:36:51 +04:00
|
|
|
echo "biostramp too big"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
1996-09-09 22:07:40 +04:00
|
|
|
@sh ${.CURDIR}/rmaouthdr biostramp biostramp.tmp
|
1996-09-08 19:36:51 +04:00
|
|
|
@mv -f biostramp.tmp biostramp
|
1996-08-26 03:38:57 +04:00
|
|
|
|
1996-09-13 04:02:36 +04:00
|
|
|
assym.h: genassym
|
|
|
|
./genassym > assym.h
|
|
|
|
|
|
|
|
biostramp.S: assym.h
|
|
|
|
biostramp.o: biostramp.S
|
|
|
|
${CC} ${CFLAGS} -DASM -D_LOCORE -c biostramp.S
|
|
|
|
|
1996-08-26 03:38:57 +04:00
|
|
|
clean:
|
1996-09-13 04:02:36 +04:00
|
|
|
rm -f *.o biostramp biostramp.sym biostramp.inc genassym assym.h
|
1996-08-26 03:38:57 +04:00
|
|
|
|
1996-09-09 22:07:40 +04:00
|
|
|
.include <bsd.dep.mk>
|
|
|
|
.include <bsd.subdir.mk>
|
1996-08-26 03:38:57 +04:00
|
|
|
#.include <bsd.prog.mk>
|