Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.31
      1 #	$NetBSD: Makefile,v 1.31 2009/12/06 13:31:17 tsutsui Exp $
      2 
      3 LIB=sa
      4 
      5 # Logically src/sys
      6 DIR_SA=$S/lib/libsa
      7 DIR_KERN=$S/lib/libkern
      8 DIR_LIBC=$S/../common/lib/libc
      9 
     10 SRC_net= arp.c \
     11 	 bootp.c bootparam.c \
     12 	 dev_net.c \
     13 	 ether.c \
     14 	 ip_cksum.c \
     15 	 net.c netif.c nfs.c \
     16 	 rarp.c rpc.c
     17 
     18 SRC_sa= alloc.c \
     19 	close.c closeall.c \
     20 	dev.c dev_net.c dkcksum.c \
     21 	ether_sprintf.c exit.c \
     22 	files.c fstat.c \
     23 	getfile.c gets.c globals.c \
     24 	intoa.c \
     25 	loadfile.c loadfile_aout.c loadfile_elf32.c lseek.c \
     26 	memmove.c memcmp.c memcpy.c memset.c \
     27 	nullfs.c \
     28 	open.c \
     29 	panic.c printf.c \
     30 	read.c \
     31 	snprintf.c sprintf.c strerror.c subr_prf.c \
     32 	twiddle.c \
     33 	udp.c ufs.c
     34 
     35 SRC_common+= ashrdi3.c inet_addr.c strncpy.c strlen.c
     36 
     37 SRC_libc_inet= inet_addr.c
     38 SRC_libc_quad= ashldi3.c ashrdi3.c
     39 SRC_libc_string= strcmp.c strlen.c strncpy.c
     40 
     41 SRC_mvme= exec_mvme.c
     42 
     43 SRC_here= bugdev.c \
     44 	  chiptotime.c clock.c \
     45 	  parse_args.c
     46 
     47 SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_common} ${SRC_mvme} ${SRC_here}
     48 
     49 # DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
     50 # 	-DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG
     51 
     52 DEFS= ${DBG} #-fno-defer-pop
     53 
     54 CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
     55 CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
     56 CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
     57 
     58 OBJS+=	SRT0.o
     59 CLEANFILES+= SRT0.o
     60 
     61 .include "../Makefile.booters"
     62 .include "${S}/../common/lib/libc/Makefile.inc"
     63 
     64 .PATH:	${DIR_SA} ${DIR_KERN} \
     65 	${DIR_LIBC}/inet ${DIR_LIBC}/quad ${DIR_LIBC}/string
     66 
     67 # only needed during build
     68 libinstall::
     69 
     70 all realall: lib${LIB}.a
     71 
     72 .include <bsd.own.mk>
     73 .undef DESTDIR
     74 .include <bsd.lib.mk>
     75