1 1.20.2.2 tv # $NetBSD: Makefile,v 1.20.2.2 2001/12/12 01:49:45 tv Exp $ 2 1.20.2.2 tv 3 1.20.2.2 tv S?= ${.CURDIR}/../../../../ 4 1.20.2.2 tv 5 1.20.2.2 tv LIB= i386 6 1.20.2.2 tv NOPIC=# defined 7 1.20.2.2 tv NOPROFILE=# defined 8 1.20.2.2 tv 9 1.20.2.2 tv I386_INCLUDE_DISK?= yes 10 1.20.2.2 tv I386_INCLUDE_DOS?= no 11 1.20.2.2 tv I386_INCLUDE_BUS?= no 12 1.20.2.2 tv I386_INCLUDE_PS2?= yes 13 1.20.2.2 tv 14 1.20.2.2 tv CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS} 15 1.20.2.2 tv #CPPFLAGS+= -DDISK_DEBUG 16 1.20.2.2 tv #CPPFLAGS+= -DNO_DISKLABEL 17 1.20.2.2 tv #CPPFLAGS+= -DSAVE_MEMORY 18 1.20.2.2 tv 19 1.20.2.2 tv SRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S 20 1.20.2.2 tv SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c 21 1.20.2.2 tv SRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c 22 1.20.2.2 tv SRCS+= pread.c menuutils.c parseutils.c 23 1.20.2.2 tv SRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c 24 1.20.2.2 tv SRCS+= startprog.S panic.c 25 1.20.2.2 tv .if (${I386_INCLUDE_DISK} == "yes") 26 1.20.2.2 tv SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S 27 1.20.2.2 tv .endif 28 1.20.2.2 tv .if (${I386_INCLUDE_DOS} == "yes") 29 1.20.2.2 tv SRCS+= dosfile.c dos_file.S 30 1.20.2.2 tv .endif 31 1.20.2.2 tv .if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes") 32 1.20.2.2 tv SRCS+= diskbuf.c 33 1.20.2.2 tv .endif 34 1.20.2.2 tv .if (${I386_INCLUDE_BUS} == "yes") 35 1.20.2.2 tv SRCS+= biospci.c bios_pci.S isapnp.c isadma.c 36 1.20.2.2 tv .endif 37 1.20.2.2 tv .if (${I386_INCLUDE_PS2} == "yes") 38 1.20.2.2 tv SRCS+= biosmca.S 39 1.20.2.2 tv .endif 40 1.20.2.2 tv 41 1.20.2.2 tv .include <bsd.own.mk> 42 1.20.2.2 tv .undef DESTDIR 43 1.20.2.2 tv .include <bsd.lib.mk> 44 1.20.2.2 tv 45 1.20.2.2 tv lib${LIB}.o:: ${OBJS} 46 1.20.2.2 tv @echo building standard ${LIB} library 47 1.20.2.2 tv @rm -f lib${LIB}.o 48 1.20.2.2 tv @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 49