Makefile revision 1.27
1# $NetBSD: Makefile,v 1.27 2005/12/30 00:24:48 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: dev.c 19# 20 21# machine dependant routines 22SRCS= consio.S diskio.c 23 24# from common/lib/libc 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 memcmp.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.include "${S}/../common/lib/libc/Makefile.inc" 54 55.PATH: ${S_SA} ${S_KERN} 56 57.if !make(obj) && !make(clean) && !make(cleandir) 58.BEGIN: 59 @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) 60 @([ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}) 61.NOPATH: machine m68k 62.endif 63CLEANFILES+= machine m68k 64 65# only needed during build 66libinstall:: 67 68.include <bsd.own.mk> 69.undef DESTDIR 70.include <bsd.lib.mk> 71