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