summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/stand/libsa/Makefile')
-rw-r--r--sys/arch/i386/stand/libsa/Makefile48
1 files changed, 26 insertions, 22 deletions
diff --git a/sys/arch/i386/stand/libsa/Makefile b/sys/arch/i386/stand/libsa/Makefile
index 4d9b58bcbfe..23103a5ca61 100644
--- a/sys/arch/i386/stand/libsa/Makefile
+++ b/sys/arch/i386/stand/libsa/Makefile
@@ -1,51 +1,55 @@
-# $OpenBSD: Makefile,v 1.3 1997/03/31 05:52:24 weingart Exp $
+# $OpenBSD: Makefile,v 1.4 1997/03/31 23:06:25 mickey Exp $
-LIB= sa
+LIB= sa
-CFLAGS+=-Wall
-#CFLAGS+=-DBIOS_DEBUG
-#CFLAGS+=-DEXEC_DEBUG
-CFLAGS+=-DNO_IDTR
-CFLAGS+=-DHEAP_START="0x10000"
-CFLAGS+=-DHEAP_LIMIT="0xa0000"
-CFLAGS+=-D__INTERNAL_LIBSA_CREAD
+CFLAGS+=$(SACFLAGS) -D__INTERNAL_LIBSA_CREAD
+CFLAGS+=-DHEAP_START=$(HEAP_START) -DHEAP_LIMIT=$(HEAP_LIMIT)
CFLAGS+=${DEBUGFLAGS} -I${.CURDIR} -I${.CURDIR}/..
CFLAGS+=-I${.CURDIR}/../../../.. -I${.CURDIR}/../../../../lib/libsa
+AS+= -R
#AS+= -Wa,-a
S=${.CURDIR}/../../../..
-DIR_SA=$S/lib/libsa
+DIR_SA= $S/lib/libsa
DIR_KERN=$S/lib/libkern
# stand routines
-SRCS= alloc.c exit.c exec.c getfile.c gets.c globals.c strcmp.c \
- strncmp.c memcmp.c memcpy.c memset.c printf.c strerror.c strncpy.c
+SRCS= alloc.c exit.c exec.c getfile.c gets.c globals.c strcmp.c strlen.c \
+ strncmp.c memcmp.c memcpy.c memset.c printf.c strerror.c strncpy.c
+
+# math for cd9660
+SRCS+= divdi3.c qdivrem.c
# io routines
-SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c fstat.c ioctl.c lseek.c \
- open.c read.c stat.c write.c cread.c readdir.c cons.c
+SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c fstat.c ioctl.c lseek.c \
+ open.c read.c stat.c write.c cread.c readdir.c cons.c
# network routines
-SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c
+SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c
# network info services
-SRCS+= bootp.c bootparam.c rarp.c
+SRCS+= bootp.c bootparam.c rarp.c
# boot filesystems
-SRCS+= ufs.c nfs.c
+SRCS+= ufs.c nfs.c cd9660.c
# i386 stuff
-SRCS+= asm.S bioscom.S biosdev.c biosdisk.S bioskbd.S biostime.S startprog.S \
- dev_i386.c exec_i386.c gateA20.c memprobe.c memsize.S probe_keyboard.c \
- real_prot.S srt0.S unixsys.S
+SRCS+= asm.S bioscom.S biosdev.c biosdisk.S bioskbd.S biostime.S biosmem.S \
+ dev_i386.c gateA20.c memprobe.c real_prot.S unixsys.S exec_i386.S
NOPROFILE=noprofile
NOPIC=nopic
.PATH: ${DIR_SA} ${DIR_KERN}
-all: ${SALIB}
+all: machine-links ${SALIB}
-.include <bsd.lib.mk>
+machine-links:
+ @rm -f machine i386
+ @ln -s ${S}/arch/i386 i386
+ @ln -s ${S}/arch/i386/include machine
+install:
+
+.include <bsd.lib.mk>