1# $NetBSD: Makefile,v 1.17 2002/05/05 17:11:41 jdolecek 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 bcopy.c exec.c files.c getfile.c gets.c globals.c panic.c \ 28 memcpy.c printf.c strerror.c subr_prf.c twiddle.c 29 30# io routines 31SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c ioctl.c \ 32 lseek.c open.c nullfs.c read.c stat.c fstat.c write.c 33 34.if !defined(NO_NET) 35# network routines 36SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c 37.endif 38 39# network info services: 40SRCS+= bootp.c rarp.c bootparam.c 41 42# boot filesystems 43SRCS+= ufs.c nfs.c 44 45# Logically src/sys 46S=${.CURDIR}/../../../.. 47S_SA=${S}/lib/libsa 48S_KERN=${S}/lib/libkern 49S_MACHSA=${S}/arch/atari/stand/libsa 50 51.PATH: ${S_SA} ${S_KERN} 52 53.if !make(obj) && !make(clean) && !make(cleandir) 54.BEGIN: 55 @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) 56 @([ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}) 57.NOPATH: machine m68k 58.endif 59CLEANFILES+= machine m68k 60 61# only needed during build 62libinstall:: 63 64.include <bsd.own.mk> 65.undef DESTDIR 66.include <bsd.lib.mk> 67