Makefile revision 1.23
1#	$NetBSD: Makefile,v 1.23 2003/10/28 11:41:46 he Exp $
2
3LIB=	sa
4
5NOPIC=# defined
6NOPROFILE=# defined
7OBJMACHINE=
8
9CPPFLAGS+=	${DEFS} ${INCL}
10CFLAGS+=	-ffreestanding
11CFLAGS+=	-fomit-frame-pointer -Wall -fno-function-cse -fstrength-reduce
12NO_NET=
13
14DEFS=	-D_STANDALONE -DHEAP_VARIABLE
15INCL=	-I${S_MACHSA} -I${S_KERN} -I${S_SA} -I${S} 
16
17#
18# NetBSD/Atari specific replacements: stand.h dev.c
19#
20
21# machine dependant routines
22SRCS=	consio.S diskio.c
23
24# from lib/libkern
25SRCS+=	ashldi3.c ashrdi3.c bzero.c strcmp.c strlen.c
26
27# stand routines
28SRCS+=	alloc.c bcmp.c bcopy.c exec.c files.c getfile.c gets.c globals.c \
29	panic.c memcpy.c memmove.c memset.c printf.c strerror.c \
30	subr_prf.c twiddle.c 
31
32# io routines
33SRCS+=	close.c closeall.c dev.c disklabel.c dkcksum.c ioctl.c \
34	lseek.c open.c nullfs.c read.c stat.c fstat.c write.c
35
36.if !defined(NO_NET)
37# network routines
38SRCS+=	arp.c ether.c in_cksum.c net.c netif.c rpc.c
39.endif
40
41# network info services:
42SRCS+=	bootp.c rarp.c bootparam.c
43
44# boot filesystems
45SRCS+=	ufs.c nfs.c
46
47# Logically src/sys
48S=${.CURDIR}/../../../..
49S_SA=${S}/lib/libsa
50S_KERN=${S}/lib/libkern
51S_MACHSA=${S}/arch/atari/stand/libsa
52
53.PATH:  ${S_SA} ${S_KERN}
54
55.if !make(obj) && !make(clean) && !make(cleandir)
56.BEGIN:
57	@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
58	@([ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
59.NOPATH: machine m68k
60.endif
61CLEANFILES+= machine m68k
62
63# only needed during build
64libinstall::
65
66.include <bsd.own.mk>
67.undef DESTDIR
68.include <bsd.lib.mk>
69