Makefile revision 1.90
1# $NetBSD: Makefile,v 1.90 2019/04/02 22:25:10 christos Exp $ 2 3LIB= sa 4LIBISPRIVATE?= yes 5 6SA_USE_CREAD?= no # Read compressed kernels 7SA_INCLUDE_NET?= yes # Netboot via TFTP, NFS 8SA_USE_LOADFILE?= no # Generic executable loading support 9SA_ENABLE_LS_OP?= no # Filesystems ls operation 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# For testing 18#WARNS=6 19#NOSSP=yes 20#NOFORTIFY=yes 21#COPTS+=-ffreestanding -Wpointer-sign 22#CPPFLAGS+= -I${.CURDIR}/../../ -I${.CURDIR} 23 24.if defined(SA_EXTRADIR) 25.-include "${SA_EXTRADIR}/Makefile.inc" 26.endif 27 28.include <bsd.own.mk> 29 30.PATH.c: ${SADIR} ${.PARSEDIR}/../../../common/lib/libc/string 31 32# stand routines 33SRCS+= alloc.c atoi.c errno.c exit.c files.c \ 34 getfile.c gets.c globals.c \ 35 panic.c printf.c qsort.c snprintf.c strerror.c \ 36 subr_prf.c twiddle.c checkpasswd.c 37 38SRCS+= bootcfg.c 39 40# string routines 41.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" 42SRCS+= memcmp.c memcpy.c memmove.c memset.c strchr.c 43.endif 44SRCS+= bcopy.c bzero.c # Remove me eventually. 45 46# io routines 47SRCS+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c 48SRCS+= close.c lseek.c open.c read.c write.c 49.if (${SA_USE_CREAD} == "yes") 50CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 51SRCS+= cread.c 52.endif 53.if (${SA_ENABLE_LS_OP} == "yes") 54SRCS+= ls.c 55.endif 56 57.if (${SA_USE_LOADFILE} == "yes") 58SRCS+= loadfile.c loadfile_ecoff.c loadfile_elf32.c lookup_elf32.c \ 59 loadfile_elf64.c lookup_elf64.c 60.if (${MACHINE_CPU} != "mips") 61SRCS+= loadfile_aout.c 62.endif 63.endif 64 65.if (${SA_INCLUDE_NET} == "yes") 66# network routines 67SRCS+= arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c ip.c 68 69# network info services: 70SRCS+= bootp.c rarp.c bootparam.c 71 72# boot filesystems 73SRCS+= nfs.c tftp.c 74.endif 75 76SRCS+= ffsv1.c ffsv2.c 77SRCS+= lfsv1.c lfsv2.c 78SRCS+= cd9660.c 79SRCS+= ustarfs.c 80SRCS+= dosfs.c 81SRCS+= ext2fs.c 82SRCS+= minixfs3.c 83SRCS+= fnmatch.c 84# for historic compatibility ufs == ffsv1 85SRCS+= ufs.c 86 87.include <bsd.lib.mk> 88 89lib${LIB}.o:: ${OBJS:O} __buildstdlib 90 91CPPFLAGS+= -Wno-pointer-sign 92 93.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax" 94COPTS.bootp.c+= -O0 95.endif 96