Makefile revision 1.34
11.34Sjoerg#	$NetBSD: Makefile,v 1.34 2011/06/07 20:05:46 joerg 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.34SjoergAFLAGS.putstr32.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
351.32SjoergAFLAGS.realprot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
361.32Sjoerg
371.1SperryCPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
381.1Sperry#CPPFLAGS+= -DDISK_DEBUG
391.1Sperry#CPPFLAGS+= -DNO_DISKLABEL
401.31Sjakllsch#CPPFLAGS+= -DNO_GPT
411.1Sperry#CPPFLAGS+= -DSAVE_MEMORY
421.1Sperry
431.14StsarnaSRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S
441.4SdrochnerSRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
451.13SdrochnerSRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c
461.11SdrochnerSRCS+= pread.c menuutils.c parseutils.c
471.11SdrochnerSRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c
481.30SjakllschSRCS+= startprog.S multiboot.S
491.26SadSRCS+= biosgetsystime.S cpufunc.S bootmenu.c
501.33SdslSRCS+= realprot.S message.S message32.S dump_eax.S pvcopy.S putstr.S putstr32.S
511.27SjmcneillSRCS+= rasops.c vbe.c biosvbe.S
521.1Sperry.if (${I386_INCLUDE_DISK} == "yes")
531.1SperrySRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
541.1Sperry.endif
551.1Sperry.if (${I386_INCLUDE_DOS} == "yes")
561.1SperrySRCS+= dosfile.c dos_file.S
571.1Sperry.endif
581.1Sperry.if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
591.1SperrySRCS+= diskbuf.c
601.1Sperry.endif
611.1Sperry.if (${I386_INCLUDE_BUS} == "yes")
621.1SperrySRCS+= biospci.c bios_pci.S isapnp.c isadma.c
631.18Sjdolecek.endif
641.18Sjdolecek.if (${I386_INCLUDE_PS2} == "yes")
651.21SjdolecekSRCS+= biosmca.S biosmemps2.S
661.1Sperry.endif
671.1Sperry
681.19Stv.include <bsd.own.mk>
691.19Stv.undef DESTDIR
701.1Sperry.include <bsd.lib.mk>
711.1Sperry
721.1Sperrylib${LIB}.o:: ${OBJS}
731.1Sperry	@echo building standard ${LIB} library
741.1Sperry	@rm -f lib${LIB}.o
751.1Sperry	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
76