Makefile revision 1.33
11.33Sdsl#	$NetBSD: Makefile,v 1.33 2011/06/02 18:53:00 dsl Exp $
21.1Sperry
31.28StsutsuiS?=	${.CURDIR}/../../../..
41.1Sperry
51.1SperryLIB= i386
61.20StvNOPIC=# defined
71.20StvNOPROFILE=# defined
81.1Sperry
91.1SperryI386_INCLUDE_DISK?= yes
101.1SperryI386_INCLUDE_DOS?= no
111.1SperryI386_INCLUDE_BUS?= no
121.18SjdolecekI386_INCLUDE_PS2?= yes
131.1Sperry
141.32SjoergAFLAGS.biosdelay.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
151.32SjoergAFLAGS.biosgetrtc.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
161.32SjoergAFLAGS.biosgetsystime.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
171.32SjoergAFLAGS.biosmca.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
181.32SjoergAFLAGS.biosmemps2.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
191.32SjoergAFLAGS.biosmem.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
201.32SjoergAFLAGS.biosmemx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
211.32SjoergAFLAGS.biosreboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
221.32SjoergAFLAGS.biosvbe.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
231.32SjoergAFLAGS.biosvideomode.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
241.32SjoergAFLAGS.bios_disk.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
251.32SjoergAFLAGS.bios_pci.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
261.32SjoergAFLAGS.comio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
271.32SjoergAFLAGS.conio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
281.32SjoergAFLAGS.dos_file.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
291.32SjoergAFLAGS.dump_eax.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
301.32SjoergAFLAGS.message.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
311.32SjoergAFLAGS.message32.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
321.32SjoergAFLAGS.pvcopy.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
331.32SjoergAFLAGS.putstr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
341.32SjoergAFLAGS.realprot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
351.32Sjoerg
361.1SperryCPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
371.1Sperry#CPPFLAGS+= -DDISK_DEBUG
381.1Sperry#CPPFLAGS+= -DNO_DISKLABEL
391.31Sjakllsch#CPPFLAGS+= -DNO_GPT
401.1Sperry#CPPFLAGS+= -DSAVE_MEMORY
411.1Sperry
421.14StsarnaSRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S
431.4SdrochnerSRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
441.13SdrochnerSRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c
451.11SdrochnerSRCS+= pread.c menuutils.c parseutils.c
461.11SdrochnerSRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c
471.30SjakllschSRCS+= startprog.S multiboot.S
481.26SadSRCS+= biosgetsystime.S cpufunc.S bootmenu.c
491.33SdslSRCS+= realprot.S message.S message32.S dump_eax.S pvcopy.S putstr.S putstr32.S
501.27SjmcneillSRCS+= rasops.c vbe.c biosvbe.S
511.1Sperry.if (${I386_INCLUDE_DISK} == "yes")
521.1SperrySRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
531.1Sperry.endif
541.1Sperry.if (${I386_INCLUDE_DOS} == "yes")
551.1SperrySRCS+= dosfile.c dos_file.S
561.1Sperry.endif
571.1Sperry.if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
581.1SperrySRCS+= diskbuf.c
591.1Sperry.endif
601.1Sperry.if (${I386_INCLUDE_BUS} == "yes")
611.1SperrySRCS+= biospci.c bios_pci.S isapnp.c isadma.c
621.18Sjdolecek.endif
631.18Sjdolecek.if (${I386_INCLUDE_PS2} == "yes")
641.21SjdolecekSRCS+= biosmca.S biosmemps2.S
651.1Sperry.endif
661.1Sperry
671.19Stv.include <bsd.own.mk>
681.19Stv.undef DESTDIR
691.1Sperry.include <bsd.lib.mk>
701.1Sperry
711.1Sperrylib${LIB}.o:: ${OBJS}
721.1Sperry	@echo building standard ${LIB} library
731.1Sperry	@rm -f lib${LIB}.o
741.1Sperry	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
75