Home | History | Annotate | Line # | Download | only in lib
      1  1.53       rin #	$NetBSD: Makefile,v 1.53 2024/07/01 01:29:59 rin Exp $
      2   1.1     perry 
      3  1.28   tsutsui S?=	${.CURDIR}/../../../..
      4   1.1     perry 
      5   1.1     perry LIB= i386
      6  1.20        tv NOPIC=# defined
      7  1.20        tv NOPROFILE=# defined
      8   1.1     perry 
      9   1.1     perry I386_INCLUDE_DISK?= yes
     10  1.18  jdolecek I386_INCLUDE_PS2?= yes
     11   1.1     perry 
     12  1.32     joerg AFLAGS.realprot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     13  1.32     joerg 
     14   1.1     perry CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
     15   1.1     perry #CPPFLAGS+= -DDISK_DEBUG
     16   1.1     perry #CPPFLAGS+= -DNO_DISKLABEL
     17  1.31  jakllsch #CPPFLAGS+= -DNO_GPT
     18  1.46      manu #CPPFLAGS+= -DNO_RAIDFRAME
     19  1.47      manu #CPPFLAGS+= -DNO_MULTIBOOT2
     20   1.1     perry #CPPFLAGS+= -DSAVE_MEMORY
     21   1.1     perry 
     22  1.14    tsarna SRCS= pcio.c conio.S comio.S comio_direct.c biosvideomode.S
     23   1.4  drochner SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
     24  1.50       rin SRCS+= biosmem.S getextmemx.c biosmemx.S
     25  1.11  drochner SRCS+= pread.c menuutils.c parseutils.c
     26  1.11  drochner SRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c
     27  1.30  jakllsch SRCS+= startprog.S multiboot.S
     28  1.26        ad SRCS+= biosgetsystime.S cpufunc.S bootmenu.c
     29  1.33       dsl SRCS+= realprot.S message.S message32.S dump_eax.S pvcopy.S putstr.S putstr32.S
     30  1.27  jmcneill SRCS+= rasops.c vbe.c biosvbe.S
     31   1.1     perry .if (${I386_INCLUDE_DISK} == "yes")
     32  1.53       rin SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S diskbuf.c
     33  1.49     lukem CWARNFLAGS.gcc+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
     34   1.1     perry .endif
     35  1.18  jdolecek .if (${I386_INCLUDE_PS2} == "yes")
     36  1.21  jdolecek SRCS+= biosmca.S biosmemps2.S
     37   1.1     perry .endif
     38   1.1     perry 
     39  1.19        tv .include <bsd.own.mk>
     40  1.19        tv .undef DESTDIR
     41   1.1     perry .include <bsd.lib.mk>
     42   1.1     perry 
     43  1.43  uebayasi lib${LIB}.o:: ${OBJS:O}
     44   1.1     perry 	@echo building standard ${LIB} library
     45   1.1     perry 	@rm -f lib${LIB}.o
     46   1.1     perry 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     47