summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa/Makefile
blob: d6cfd1f3151fbb6b77c8acf299bbd30e486d1659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#	$OpenBSD: Makefile,v 1.6 1997/04/05 18:56:22 mickey Exp $


LIB=	sa

S=${.CURDIR}/../../../..
DIR_SA=	$S/lib/libsa
DIR_KERN=$S/lib/libkern

CFLAGS+=$(SACFLAGS) -D__INTERNAL_LIBSA_CREAD
CFLAGS+=-DHEAP_START=$(HEAP_START) -DHEAP_LIMIT=$(HEAP_LIMIT)
CFLAGS+=${DEBUGFLAGS} -I${.CURDIR} -I${.CURDIR}/..
CFLAGS+=-I$(S)/lib/libsa -I$(S)
AS+=	-R
#AS+=	-Wa,-a

# stand routines
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

# network routines
SRCS+=	arp.c ether.c in_cksum.c net.c netif.c rpc.c

# network info services
SRCS+=	bootp.c bootparam.c rarp.c

# boot filesystems
SRCS+=	ufs.c nfs.c cd9660.c

# debugger
SRCS+=	debug.c debug_aout.c debug_i386.S

# i386 stuff
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 \
	gidt.S

NOPROFILE=noprofile
NOPIC=nopic

.PATH:  ${DIR_SA} ${DIR_KERN}

all: machine-links ${SALIB}

machine-links:
	@rm -f machine i386
	@ln -s ${S}/arch/i386 i386
	@ln -s ${S}/arch/i386/include machine

install:

.include <bsd.lib.mk>