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