Makefile revision 1.33
1# $NetBSD: Makefile,v 1.33 2011/06/02 18:53:00 dsl 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 14AFLAGS.biosdelay.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 15AFLAGS.biosgetrtc.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 16AFLAGS.biosgetsystime.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 17AFLAGS.biosmca.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 18AFLAGS.biosmemps2.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 19AFLAGS.biosmem.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 20AFLAGS.biosmemx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 21AFLAGS.biosreboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 22AFLAGS.biosvbe.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 23AFLAGS.biosvideomode.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 24AFLAGS.bios_disk.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 25AFLAGS.bios_pci.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 26AFLAGS.comio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 27AFLAGS.conio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 28AFLAGS.dos_file.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 29AFLAGS.dump_eax.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 30AFLAGS.message.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 31AFLAGS.message32.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 32AFLAGS.pvcopy.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 33AFLAGS.putstr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 34AFLAGS.realprot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 35 36CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS} 37#CPPFLAGS+= -DDISK_DEBUG 38#CPPFLAGS+= -DNO_DISKLABEL 39#CPPFLAGS+= -DNO_GPT 40#CPPFLAGS+= -DSAVE_MEMORY 41 42SRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S 43SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c 44SRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c 45SRCS+= pread.c menuutils.c parseutils.c 46SRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c 47SRCS+= startprog.S multiboot.S 48SRCS+= biosgetsystime.S cpufunc.S bootmenu.c 49SRCS+= realprot.S message.S message32.S dump_eax.S pvcopy.S putstr.S putstr32.S 50SRCS+= rasops.c vbe.c biosvbe.S 51.if (${I386_INCLUDE_DISK} == "yes") 52SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S 53.endif 54.if (${I386_INCLUDE_DOS} == "yes") 55SRCS+= dosfile.c dos_file.S 56.endif 57.if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes") 58SRCS+= diskbuf.c 59.endif 60.if (${I386_INCLUDE_BUS} == "yes") 61SRCS+= biospci.c bios_pci.S isapnp.c isadma.c 62.endif 63.if (${I386_INCLUDE_PS2} == "yes") 64SRCS+= biosmca.S biosmemps2.S 65.endif 66 67.include <bsd.own.mk> 68.undef DESTDIR 69.include <bsd.lib.mk> 70 71lib${LIB}.o:: ${OBJS} 72 @echo building standard ${LIB} library 73 @rm -f lib${LIB}.o 74 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 75