1 # $NetBSD: Makefile,v 1.18 2003/04/01 13:31:23 he Exp $ 2 3 LIB= sa 4 5 NOPIC=# defined 6 NOPROFILE=# defined 7 OBJMACHINE= 8 9 CPPFLAGS+= ${DEFS} ${INCL} 10 CFLAGS+= -fomit-frame-pointer -Wall -fno-function-cse -fstrength-reduce 11 NO_NET= 12 13 DEFS= -D_STANDALONE -DHEAP_VARIABLE 14 INCL= -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 21 SRCS= consio.S diskio.c 22 23 # from lib/libkern 24 SRCS+= ashldi3.c ashrdi3.c divdi3.c moddi3.c qdivrem.c \ 25 bzero.c strcmp.c strlen.c 26 27 # stand routines 28 SRCS+= alloc.c bcopy.c exec.c files.c getfile.c gets.c globals.c panic.c \ 29 memcpy.c printf.c strerror.c subr_prf.c twiddle.c 30 31 # io routines 32 SRCS+= 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 37 SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c 38 .endif 39 40 # network info services: 41 SRCS+= bootp.c rarp.c bootparam.c 42 43 # boot filesystems 44 SRCS+= ufs.c nfs.c 45 46 # Logically src/sys 47 S=${.CURDIR}/../../../.. 48 S_SA=${S}/lib/libsa 49 S_KERN=${S}/lib/libkern 50 S_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 60 CLEANFILES+= machine m68k 61 62 # only needed during build 63 libinstall:: 64 65 .include <bsd.own.mk> 66 .undef DESTDIR 67 .include <bsd.lib.mk> 68