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