Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.27
      1  1.27        he #	$NetBSD: Makefile,v 1.27 2005/12/30 00:24:48 he Exp $
      2   1.1       leo 
      3   1.1       leo LIB=	sa
      4   1.1       leo 
      5  1.13        tv NOPIC=# defined
      6  1.13        tv NOPROFILE=# defined
      7   1.1       leo OBJMACHINE=
      8   1.1       leo 
      9   1.1       leo CPPFLAGS+=	${DEFS} ${INCL}
     10  1.23        he CFLAGS+=	-ffreestanding
     11   1.9    thomas CFLAGS+=	-fomit-frame-pointer -Wall -fno-function-cse -fstrength-reduce
     12   1.1       leo NO_NET=
     13   1.1       leo 
     14  1.11       leo DEFS=	-D_STANDALONE -DHEAP_VARIABLE
     15  1.25  junyoung INCL=	-I${S_MACHSA} -I${S_KERN} -I${S_SA} -I${S}
     16   1.1       leo 
     17   1.1       leo #
     18  1.25  junyoung # NetBSD/atari specific replacements: dev.c
     19   1.1       leo #
     20   1.1       leo 
     21   1.1       leo # machine dependant routines
     22   1.9    thomas SRCS=	consio.S diskio.c
     23   1.1       leo 
     24  1.27        he # from common/lib/libc
     25  1.19        he SRCS+=	ashldi3.c ashrdi3.c bzero.c strcmp.c strlen.c
     26   1.1       leo 
     27   1.1       leo # stand routines
     28  1.20        he SRCS+=	alloc.c bcmp.c bcopy.c exec.c files.c getfile.c gets.c globals.c \
     29  1.24       jmc 	panic.c memcmp.c memcpy.c memmove.c memset.c printf.c strerror.c \
     30  1.25  junyoung 	subr_prf.c twiddle.c
     31   1.1       leo 
     32   1.1       leo # io routines
     33   1.1       leo SRCS+=	close.c closeall.c dev.c disklabel.c dkcksum.c ioctl.c \
     34   1.1       leo 	lseek.c open.c nullfs.c read.c stat.c fstat.c write.c
     35   1.1       leo 
     36   1.1       leo .if !defined(NO_NET)
     37   1.1       leo # network routines
     38   1.1       leo SRCS+=	arp.c ether.c in_cksum.c net.c netif.c rpc.c
     39   1.1       leo .endif
     40   1.1       leo 
     41   1.1       leo # network info services:
     42   1.1       leo SRCS+=	bootp.c rarp.c bootparam.c
     43   1.1       leo 
     44   1.1       leo # boot filesystems
     45   1.1       leo SRCS+=	ufs.c nfs.c
     46   1.1       leo 
     47   1.1       leo # Logically src/sys
     48   1.2       leo S=${.CURDIR}/../../../..
     49   1.1       leo S_SA=${S}/lib/libsa
     50   1.1       leo S_KERN=${S}/lib/libkern
     51   1.1       leo S_MACHSA=${S}/arch/atari/stand/libsa
     52   1.1       leo 
     53  1.27        he .include "${S}/../common/lib/libc/Makefile.inc"
     54  1.27        he 
     55   1.1       leo .PATH:  ${S_SA} ${S_KERN}
     56  1.14       leo 
     57  1.17  jdolecek .if !make(obj) && !make(clean) && !make(cleandir)
     58  1.14       leo .BEGIN:
     59  1.14       leo 	@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
     60  1.14       leo 	@([ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
     61  1.14       leo .NOPATH: machine m68k
     62  1.17  jdolecek .endif
     63  1.14       leo CLEANFILES+= machine m68k
     64   1.5       cjs 
     65   1.5       cjs # only needed during build
     66   1.5       cjs libinstall::
     67   1.1       leo 
     68  1.12        tv .include <bsd.own.mk>
     69  1.12        tv .undef DESTDIR
     70   1.1       leo .include <bsd.lib.mk>
     71