NetBSD/sys/arch/i386/apm_init/Makefile

41 lines
942 B
Makefile
Raw Normal View History

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