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