blob: 2dc1b64830cbfb17697ec8b784f1105f3e283ff9 (
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
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.23 2003/10/28 11:41:46 he Exp $
LIB= sa
NOPIC=# defined
NOPROFILE=# defined
OBJMACHINE=
CPPFLAGS+= ${DEFS} ${INCL}
CFLAGS+= -ffreestanding
CFLAGS+= -fomit-frame-pointer -Wall -fno-function-cse -fstrength-reduce
NO_NET=
DEFS= -D_STANDALONE -DHEAP_VARIABLE
INCL= -I${S_MACHSA} -I${S_KERN} -I${S_SA} -I${S}
#
# NetBSD/Atari specific replacements: stand.h dev.c
#
# machine dependant routines
SRCS= consio.S diskio.c
# from lib/libkern
SRCS+= ashldi3.c ashrdi3.c bzero.c strcmp.c strlen.c
# stand routines
SRCS+= alloc.c bcmp.c bcopy.c exec.c files.c getfile.c gets.c globals.c \
panic.c memcpy.c memmove.c memset.c printf.c strerror.c \
subr_prf.c twiddle.c
# io routines
SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c ioctl.c \
lseek.c open.c nullfs.c read.c stat.c fstat.c write.c
.if !defined(NO_NET)
# network routines
SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c
.endif
# network info services:
SRCS+= bootp.c rarp.c bootparam.c
# boot filesystems
SRCS+= ufs.c nfs.c
# Logically src/sys
S=${.CURDIR}/../../../..
S_SA=${S}/lib/libsa
S_KERN=${S}/lib/libkern
S_MACHSA=${S}/arch/atari/stand/libsa
.PATH: ${S_SA} ${S_KERN}
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
@([ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
.NOPATH: machine m68k
.endif
CLEANFILES+= machine m68k
# only needed during build
libinstall::
.include <bsd.own.mk>
.undef DESTDIR
.include <bsd.lib.mk>
|