Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.13
      1 #	$NetBSD: Makefile,v 1.13 1999/12/21 14:22:54 drochner Exp $
      2 
      3 S?=	${.CURDIR}/../../../../
      4 
      5 LIB= i386
      6 MKPIC=no
      7 MKPROFILE=no
      8 
      9 I386_INCLUDE_DISK?= yes
     10 I386_INCLUDE_DOS?= no
     11 I386_INCLUDE_BUS?= no
     12 
     13 CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
     14 #CPPFLAGS+= -DDISK_DEBUG
     15 #CPPFLAGS+= -DNO_DISKLABEL
     16 #CPPFLAGS+= -DSAVE_MEMORY
     17 
     18 SRCS= pcio.c conio.S comio.S comio_direct.c
     19 SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
     20 SRCS+= biosmem.S getextmemx.c biosmemx.S printmemlist.c
     21 SRCS+= pread.c menuutils.c parseutils.c
     22 SRCS+= bootinfo.c bootinfo_biosgeom.c bootinfo_memmap.c
     23 SRCS+= startprog.S netbsd_opts.c panic.c
     24 .if (${I386_INCLUDE_DISK} == "yes")
     25 SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
     26 .endif
     27 .if (${I386_INCLUDE_DOS} == "yes")
     28 SRCS+= dosfile.c dos_file.S
     29 .endif
     30 .if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
     31 SRCS+= diskbuf.c
     32 .endif
     33 .if (${I386_INCLUDE_BUS} == "yes")
     34 SRCS+= biospci.c bios_pci.S isapnp.c isadma.c
     35 .endif
     36 
     37 .include <bsd.lib.mk>
     38 
     39 lib${LIB}.o:: ${OBJS}
     40 	@echo building standard ${LIB} library
     41 	@rm -f lib${LIB}.o
     42 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     43