Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 1997/08/14 15:40:28 drochner Exp $
      2 
      3 S?=	${.CURDIR}/../../../../
      4 
      5 LIB= i386
      6 NOPIC=
      7 NOPROFILE=
      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
     19 SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
     20 SRCS+= biosmem.S getextmemx.c biosmemx.S
     21 SRCS+= pread.c
     22 SRCS+= exec.c startprog.S netbsd_opts.c panic.c
     23 .if (${I386_INCLUDE_DISK} == "yes")
     24 SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
     25 .endif
     26 .if (${I386_INCLUDE_DOS} == "yes")
     27 SRCS+= dosfile.c dos_file.S
     28 .endif
     29 .if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
     30 SRCS+= diskbuf.c
     31 .endif
     32 .if (${I386_INCLUDE_BUS} == "yes")
     33 SRCS+= biospci.c bios_pci.S isapnp.c isadma.c
     34 .endif
     35 
     36 .include <bsd.lib.mk>
     37 
     38 lib${LIB}.o:: ${OBJS}
     39 	@echo building standard ${LIB} library
     40 	@rm -f lib${LIB}.o
     41 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     42