Makefile revision 1.60
1# $NetBSD: Makefile,v 1.60 2007/12/01 18:11:02 tsutsui Exp $ 2 3LIB= sa 4NOPIC= # defined 5NOPROFILE=# defined 6 7SA_USE_CREAD?= no # Read compressed kernels 8SA_INCLUDE_NET?= yes # Netboot via TFTP, NFS 9SA_USE_LOADFILE?= no # Generic executable loading support 10 11#DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID 12CPPFLAGS= -I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \ 13 -DCOMPAT_UFS ${DEBUGCPPFLAGS} 14 15#COPTS+= -ansi -pedantic -Wall 16 17.PATH.c: ${SADIR} 18 19# stand routines 20SRCS+= alloc.c bcopy.c bzero.c errno.c exit.c exec.c files.c \ 21 getfile.c gets.c globals.c memcmp.c memcpy.c memmove.c memset.c \ 22 panic.c printf.c qsort.c snprintf.c sprintf.c strerror.c subr_prf.c \ 23 twiddle.c vsprintf.c checkpasswd.c 24 25# io routines 26SRCS+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c 27SRCS+= close.c lseek.c open.c read.c write.c 28.if (${SA_USE_CREAD} == "yes") 29CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 30SRCS+= cread.c 31.endif 32 33.if (${SA_USE_LOADFILE} == "yes") 34SRCS+= loadfile.c loadfile_aout.c loadfile_ecoff.c loadfile_elf32.c \ 35 loadfile_elf64.c 36.endif 37 38.if (${SA_INCLUDE_NET} == "yes") 39# network routines 40SRCS+= arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c 41 42# network info services: 43SRCS+= bootp.c rarp.c bootparam.c 44 45# boot filesystems 46SRCS+= nfs.c tftp.c 47.endif 48 49SRCS+= ffsv1.c ffsv2.c 50SRCS+= lfsv1.c lfsv2.c ufs_ls.c 51SRCS+= cd9660.c 52SRCS+= ustarfs.c 53SRCS+= dosfs.c 54SRCS+= ext2fs.c 55# for historic comparibility ufs == ffsv1 56SRCS+= ufs.c 57 58# only needed during build 59libinstall:: 60 61.undef DESTDIR 62.include <bsd.lib.mk> 63 64lib${LIB}.o:: ${OBJS} 65 @echo building standard ${LIB} library 66 @rm -f lib${LIB}.o 67 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 68 69.if ${HAVE_GCC} == 4 70CPPFLAGS+= -Wno-pointer-sign 71.endif 72