Makefile revision 1.90
11.90Schristos# $NetBSD: Makefile,v 1.90 2019/04/02 22:25:10 christos Exp $ 21.1Sbrezak 31.1SbrezakLIB= sa 41.79SmattLIBISPRIVATE?= yes 51.1Sbrezak 61.44ShubertfSA_USE_CREAD?= no # Read compressed kernels 71.44ShubertfSA_INCLUDE_NET?= yes # Netboot via TFTP, NFS 81.50SthorpejSA_USE_LOADFILE?= no # Generic executable loading support 91.76StsutsuiSA_ENABLE_LS_OP?= no # Filesystems ls operation 101.7Spk 111.66Smlelstv#DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID 121.32SdrochnerCPPFLAGS= -I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \ 131.16Scgd -DCOMPAT_UFS ${DEBUGCPPFLAGS} 141.7Spk 151.21Slukem#COPTS+= -ansi -pedantic -Wall 161.32Sdrochner 171.89Schristos# For testing 181.90Schristos#WARNS=6 191.90Schristos#NOSSP=yes 201.90Schristos#NOFORTIFY=yes 211.90Schristos#COPTS+=-ffreestanding -Wpointer-sign 221.90Schristos#CPPFLAGS+= -I${.CURDIR}/../../ -I${.CURDIR} 231.89Schristos 241.68Stsutsui.if defined(SA_EXTRADIR) 251.68Stsutsui.-include "${SA_EXTRADIR}/Makefile.inc" 261.68Stsutsui.endif 271.68Stsutsui 281.69She.include <bsd.own.mk> 291.69She 301.64Schristos.PATH.c: ${SADIR} ${.PARSEDIR}/../../../common/lib/libc/string 311.2Sbrezak 321.2Sbrezak# stand routines 331.84SisakiSRCS+= alloc.c atoi.c errno.c exit.c files.c \ 341.64Schristos getfile.c gets.c globals.c \ 351.81Schristos panic.c printf.c qsort.c snprintf.c strerror.c \ 361.81Schristos subr_prf.c twiddle.c checkpasswd.c 371.1Sbrezak 381.83SrtrSRCS+= bootcfg.c 391.83Srtr 401.64Schristos# string routines 411.73Sjoerg.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" 421.64SchristosSRCS+= memcmp.c memcpy.c memmove.c memset.c strchr.c 431.73Sjoerg.endif 441.65SchristosSRCS+= bcopy.c bzero.c # Remove me eventually. 451.64Schristos 461.1Sbrezak# io routines 471.15ScgdSRCS+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c 481.15ScgdSRCS+= close.c lseek.c open.c read.c write.c 491.15Scgd.if (${SA_USE_CREAD} == "yes") 501.15ScgdCPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 511.15ScgdSRCS+= cread.c 521.15Scgd.endif 531.76Stsutsui.if (${SA_ENABLE_LS_OP} == "yes") 541.76StsutsuiSRCS+= ls.c 551.76Stsutsui.endif 561.2Sbrezak 571.31Schristos.if (${SA_USE_LOADFILE} == "yes") 581.71SmartinSRCS+= loadfile.c loadfile_ecoff.c loadfile_elf32.c lookup_elf32.c \ 591.71Smartin loadfile_elf64.c lookup_elf64.c 601.70She.if (${MACHINE_CPU} != "mips") 611.70SheSRCS+= loadfile_aout.c 621.70She.endif 631.31Schristos.endif 641.54Sdsl 651.15Scgd.if (${SA_INCLUDE_NET} == "yes") 661.2Sbrezak# network routines 671.72SzoltanSRCS+= arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c ip.c 681.2Sbrezak 691.2Sbrezak# network info services: 701.7SpkSRCS+= bootp.c rarp.c bootparam.c 711.1Sbrezak 721.2Sbrezak# boot filesystems 731.27SdrochnerSRCS+= nfs.c tftp.c 741.27Sdrochner.endif 751.54Sdsl 761.76StsutsuiSRCS+= ffsv1.c ffsv2.c 771.61StsutsuiSRCS+= lfsv1.c lfsv2.c 781.60StsutsuiSRCS+= cd9660.c 791.60StsutsuiSRCS+= ustarfs.c 801.60StsutsuiSRCS+= dosfs.c 811.60StsutsuiSRCS+= ext2fs.c 821.77SchristosSRCS+= minixfs3.c 831.77SchristosSRCS+= fnmatch.c 841.62Stsutsui# for historic compatibility ufs == ffsv1 851.54SdslSRCS+= ufs.c 861.19Scjs 871.1Sbrezak.include <bsd.lib.mk> 881.15Scgd 891.88Schristoslib${LIB}.o:: ${OBJS:O} __buildstdlib 901.59Smrg 911.59SmrgCPPFLAGS+= -Wno-pointer-sign 921.75Smrg 931.82Smrg.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax" 941.75SmrgCOPTS.bootp.c+= -O0 951.75Smrg.endif 96