Makefile revision 1.69
1# $NetBSD: Makefile,v 1.69 2009/08/21 21:12:02 he 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 -DARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID 12CPPFLAGS= -I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \ 13 -DCOMPAT_UFS ${DEBUGCPPFLAGS} 14 15#COPTS+= -ansi -pedantic -Wall 16 17.if defined(SA_EXTRADIR) 18.-include "${SA_EXTRADIR}/Makefile.inc" 19.endif 20 21.include <bsd.own.mk> 22 23.PATH.c: ${SADIR} ${.PARSEDIR}/../../../common/lib/libc/string 24 25# stand routines 26SRCS+= alloc.c errno.c exit.c files.c \ 27 getfile.c gets.c globals.c \ 28 panic.c printf.c qsort.c snprintf.c sprintf.c strerror.c \ 29 subr_prf.c twiddle.c vsprintf.c checkpasswd.c 30 31.if (${MACHINE_CPU} != "mips") 32SRCS+= exec.c loadfile_aout.c 33.endif 34 35# string routines 36SRCS+= memcmp.c memcpy.c memmove.c memset.c strchr.c 37SRCS+= bcopy.c bzero.c # Remove me eventually. 38 39# io routines 40SRCS+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c 41SRCS+= close.c lseek.c open.c read.c write.c 42.if (${SA_USE_CREAD} == "yes") 43CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 44SRCS+= cread.c 45.endif 46 47.if (${SA_USE_LOADFILE} == "yes") 48SRCS+= loadfile.c loadfile_ecoff.c loadfile_elf32.c \ 49 loadfile_elf64.c 50.endif 51 52.if (${SA_INCLUDE_NET} == "yes") 53# network routines 54SRCS+= arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c 55 56# network info services: 57SRCS+= bootp.c rarp.c bootparam.c 58 59# boot filesystems 60SRCS+= nfs.c tftp.c 61.endif 62 63SRCS+= ffsv1.c ffsv2.c ufs_ls.c 64SRCS+= lfsv1.c lfsv2.c 65SRCS+= cd9660.c 66SRCS+= ustarfs.c 67SRCS+= dosfs.c 68SRCS+= ext2fs.c 69# for historic compatibility ufs == ffsv1 70SRCS+= ufs.c 71 72# only needed during build 73libinstall:: 74 75.undef DESTDIR 76.include <bsd.lib.mk> 77 78lib${LIB}.o:: ${OBJS} 79 @echo building standard ${LIB} library 80 @rm -f lib${LIB}.o 81 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 82 83.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) 84CPPFLAGS+= -Wno-pointer-sign 85.endif 86