Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.29.86.1
      1 #	$NetBSD: Makefile,v 1.29.86.1 2009/05/13 17:18:08 jym 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 CLEANFILES+= SRT0.o
     59 
     60 .include "../Makefile.booters"
     61 .include "${S}/../common/lib/libc/Makefile.inc"
     62 
     63 .PATH:	${DIR_SA} ${DIR_KERN} \
     64 	${DIR_LIBC}/inet ${DIR_LIBC}/quad ${DIR_LIBC}/string
     65 
     66 # only needed during build
     67 libinstall::
     68 
     69 all realall: lib${LIB}.a SRT0.o
     70 
     71 .include <bsd.own.mk>
     72 .undef DESTDIR
     73 .include <bsd.lib.mk>
     74