42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.5 1997/09/17 17:51:12 drochner Exp $
|
|
|
|
S?= ${.CURDIR}/../../../../
|
|
|
|
LIB= i386
|
|
NOPIC=
|
|
NOPROFILE=
|
|
|
|
I386_INCLUDE_DISK?= yes
|
|
I386_INCLUDE_DOS?= no
|
|
I386_INCLUDE_BUS?= no
|
|
|
|
CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
|
|
#CPPFLAGS+= -DDISK_DEBUG
|
|
#CPPFLAGS+= -DNO_DISKLABEL
|
|
#CPPFLAGS+= -DSAVE_MEMORY
|
|
|
|
SRCS= pcio.c conio.S comio.S comio_direct.c
|
|
SRCS+= getsecs.c biosgetrtc.S biosdelay.S biosreboot.S gatea20.c
|
|
SRCS+= biosmem.S getextmemx.c biosmemx.S
|
|
SRCS+= pread.c menuutils.c parseutils.c bootinfo.c bootinfo_biosgeom.c
|
|
SRCS+= exec.c startprog.S netbsd_opts.c panic.c
|
|
.if (${I386_INCLUDE_DISK} == "yes")
|
|
SRCS+= biosdisk.c biosdisk_ll.c bios_disk.S
|
|
.endif
|
|
.if (${I386_INCLUDE_DOS} == "yes")
|
|
SRCS+= dosfile.c dos_file.S
|
|
.endif
|
|
.if (${I386_INCLUDE_DISK} == "yes") || (${I386_INCLUDE_DOS} == "yes")
|
|
SRCS+= diskbuf.c
|
|
.endif
|
|
.if (${I386_INCLUDE_BUS} == "yes")
|
|
SRCS+= biospci.c bios_pci.S isapnp.c isadma.c
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
lib${LIB}.o:: ${OBJS}
|
|
@echo building standard ${LIB} library
|
|
@rm -f lib${LIB}.o
|
|
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
|