Home | History | Annotate | Line # | Download | only in bioscall
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 1998/08/31 23:52:40 jtk Exp $
      2 
      3 CPPFLAGS=	${APMCPPFLAGS}
      4 KSRC=${.CURDIR}/../../..
      5 ARCHSRC=${.CURDIR}/../..
      6 I386=${KSRC}/arch/i386
      7 CFLAGS+= -I${ARCHSRC} -I${KSRC} -D_LKM
      8 
      9 SRCS=	biostramp.S
     10 OBJS=	biostramp.o
     11 DEPS=	${APMDEPS}
     12 STRIP?= strip
     13 
     14 all: biostramp.inc
     15 
     16 biostramp.inc: biostramp Makefile
     17 	-mv -f biostramp.inc biostramp.inc.bak
     18 	sh ${.CURDIR}/bin2asm.sh biostramp > biostramp.inc
     19 
     20 biostramp: ${OBJS} ${DEPS}
     21 	${LD} -Bstatic -N -T 0 -o biostramp $(OBJS)
     22 	cp biostramp biostramp.sym
     23 	@${STRIP} biostramp
     24 	@if [ `ls -l biostramp |awk '{print $$5}'` -gt 4096 ]; then \
     25 		echo "biostramp too big"; \
     26 		exit 1; \
     27 	fi
     28 	@sh ${.CURDIR}/rmaouthdr biostramp biostramp.tmp
     29 	@mv -f biostramp.tmp biostramp
     30 
     31 assym.h: ${KSRC}/kern/genassym.sh genassym.cf
     32 	sh ${KSRC}/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
     33 	    < genassym.cf > assym.h.tmp && \
     34 	mv -f assym.h.tmp assym.h
     35 
     36 biostramp.S: assym.h
     37 biostramp.o: biostramp.S
     38 	${CC} ${CFLAGS} -DASM -D_LOCORE -c biostramp.S
     39 
     40 clean:
     41 	rm -f *.o biostramp biostramp.sym biostramp.inc assym.h
     42 
     43 .include <bsd.dep.mk>
     44 .include <bsd.subdir.mk>
     45 #.include <bsd.prog.mk>
     46