1 # $NetBSD: Makefile,v 1.2 1997/03/14 04:59:39 thorpej Exp $ 2 3 S?= ${.CURDIR}/../../../../ 4 5 LIB= i386 6 NOPIC= 7 NOPROFILE= 8 9 I386_INCLUDE_DISK?= yes 10 I386_INCLUDE_DOS?= no 11 I386_INCLUDE_BUS?= no 12 13 CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS} 14 #CPPFLAGS+= -DDISK_DEBUG 15 #CPPFLAGS+= -DNO_DISKLABEL 16 #CPPFLAGS+= -DSAVE_MEMORY 17 18 SRCS= pcio.c conio.S comio.S 19 SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosmem.S gatea20.c 20 SRCS+= pread.c 21 SRCS+= exec.c startprog.S netbsd_opts.c panic.c 22 .if (${I386_INCLUDE_DISK} == "yes") 23 SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S 24 .endif 25 .if (${I386_INCLUDE_DOS} == "yes") 26 SRCS+= dosfile.c dos_file.S 27 .endif 28 .if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes") 29 SRCS+= diskbuf.c 30 .endif 31 .if (${I386_INCLUDE_BUS} == "yes") 32 SRCS+= biospci.c bios_pci.S isapnp.c isadma.c 33 .endif 34 35 .include <bsd.lib.mk> 36 37 lib${LIB}.o:: ${OBJS} 38 @echo building standard ${LIB} library 39 @rm -f lib${LIB}.o 40 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 41