Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.6.76.2
      1 #	$NetBSD: Makefile,v 1.6.76.2 2010/03/11 15:02:44 yamt Exp $
      2 
      3 LIB=sa
      4 
      5 # Logically src/sys
      6 DIR_SA=$S/lib/libsa
      7 DIR_KERN=$S/lib/libkern
      8 
      9 SRC_net= nfs.c rpc.c net.c ether.c arp.c ip_cksum.c netif.c \
     10 	 bootparam.c rarp.c dev_net.c bootp.c
     11 
     12 
     13 SRC_sa = alloc.c memcpy.c memset.c close.c exit.c files.c getfile.c gets.c \
     14 	 open.c printf.c read.c strerror.c ufs.c globals.c lseek.c panic.c \
     15 	 closeall.c dev.c dkcksum.c nullfs.c fstat.c twiddle.c sprintf.c \
     16 	 subr_prf.c intoa.c udp.c memcmp.c loadfile.c loadfile_aout.c \
     17 	 loadfile_elf32.c dev_net.c ether_sprintf.c snprintf.c
     18 
     19 SRC_kern= ashldi3.c ashrdi3.c strcmp.c strlen.c strncpy.c inet_addr.c
     20 
     21 SRC_here= srt0.S bugsyscalls.S exec_mvme.c parse_args.c getchar.c putchar.c
     22 SRC_here+= if_bug.c clock.c
     23 
     24 SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here}
     25 
     26 # DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
     27 # 	-DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG
     28 
     29 DEFS= ${DBG} #-fno-defer-pop
     30 
     31 CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
     32 #CPPFLAGS+= -DSUPPORT_DHCP
     33 #CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
     34 CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
     35 
     36 .include "../Makefile.booters"
     37 .include "${S}/../common/lib/libc/Makefile.inc"
     38 
     39 .PATH:  ${DIR_SA} ${DIR_KERN}
     40 
     41 # only needed during build
     42 libinstall::
     43 
     44 all realall: lib${LIB}.a
     45 
     46 .include <bsd.own.mk>
     47 .undef DESTDIR
     48 .include <bsd.lib.mk>
     49