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