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