1 1.89 christos # $NetBSD: Makefile,v 1.89 2019/03/31 20:08:45 christos Exp $ 2 1.1 brezak 3 1.1 brezak LIB= sa 4 1.79 matt LIBISPRIVATE?= yes 5 1.1 brezak 6 1.44 hubertf SA_USE_CREAD?= no # Read compressed kernels 7 1.44 hubertf SA_INCLUDE_NET?= yes # Netboot via TFTP, NFS 8 1.50 thorpej SA_USE_LOADFILE?= no # Generic executable loading support 9 1.76 tsutsui SA_ENABLE_LS_OP?= no # Filesystems ls operation 10 1.7 pk 11 1.66 mlelstv #DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID 12 1.32 drochner CPPFLAGS= -I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \ 13 1.16 cgd -DCOMPAT_UFS ${DEBUGCPPFLAGS} 14 1.7 pk 15 1.21 lukem #COPTS+= -ansi -pedantic -Wall 16 1.32 drochner 17 1.89 christos # For testing 18 1.89 christos # WARNS=5 19 1.89 christos # COPTS+=-ffreestanding 20 1.89 christos # CPPFLAGS+= -I${.CURDIR}/../../ -I${.CURDIR} 21 1.89 christos 22 1.68 tsutsui .if defined(SA_EXTRADIR) 23 1.68 tsutsui .-include "${SA_EXTRADIR}/Makefile.inc" 24 1.68 tsutsui .endif 25 1.68 tsutsui 26 1.69 he .include <bsd.own.mk> 27 1.69 he 28 1.64 christos .PATH.c: ${SADIR} ${.PARSEDIR}/../../../common/lib/libc/string 29 1.2 brezak 30 1.2 brezak # stand routines 31 1.84 isaki SRCS+= alloc.c atoi.c errno.c exit.c files.c \ 32 1.64 christos getfile.c gets.c globals.c \ 33 1.81 christos panic.c printf.c qsort.c snprintf.c strerror.c \ 34 1.81 christos subr_prf.c twiddle.c checkpasswd.c 35 1.1 brezak 36 1.83 rtr SRCS+= bootcfg.c 37 1.83 rtr 38 1.64 christos # string routines 39 1.73 joerg .if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" 40 1.64 christos SRCS+= memcmp.c memcpy.c memmove.c memset.c strchr.c 41 1.73 joerg .endif 42 1.65 christos SRCS+= bcopy.c bzero.c # Remove me eventually. 43 1.64 christos 44 1.1 brezak # io routines 45 1.15 cgd SRCS+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c 46 1.15 cgd SRCS+= close.c lseek.c open.c read.c write.c 47 1.15 cgd .if (${SA_USE_CREAD} == "yes") 48 1.15 cgd CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 49 1.15 cgd SRCS+= cread.c 50 1.15 cgd .endif 51 1.76 tsutsui .if (${SA_ENABLE_LS_OP} == "yes") 52 1.76 tsutsui SRCS+= ls.c 53 1.76 tsutsui .endif 54 1.2 brezak 55 1.31 christos .if (${SA_USE_LOADFILE} == "yes") 56 1.71 martin SRCS+= loadfile.c loadfile_ecoff.c loadfile_elf32.c lookup_elf32.c \ 57 1.71 martin loadfile_elf64.c lookup_elf64.c 58 1.70 he .if (${MACHINE_CPU} != "mips") 59 1.70 he SRCS+= loadfile_aout.c 60 1.70 he .endif 61 1.31 christos .endif 62 1.54 dsl 63 1.15 cgd .if (${SA_INCLUDE_NET} == "yes") 64 1.2 brezak # network routines 65 1.72 zoltan SRCS+= arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c ip.c 66 1.2 brezak 67 1.2 brezak # network info services: 68 1.7 pk SRCS+= bootp.c rarp.c bootparam.c 69 1.1 brezak 70 1.2 brezak # boot filesystems 71 1.27 drochner SRCS+= nfs.c tftp.c 72 1.27 drochner .endif 73 1.54 dsl 74 1.76 tsutsui SRCS+= ffsv1.c ffsv2.c 75 1.61 tsutsui SRCS+= lfsv1.c lfsv2.c 76 1.60 tsutsui SRCS+= cd9660.c 77 1.60 tsutsui SRCS+= ustarfs.c 78 1.60 tsutsui SRCS+= dosfs.c 79 1.60 tsutsui SRCS+= ext2fs.c 80 1.77 christos SRCS+= minixfs3.c 81 1.77 christos SRCS+= fnmatch.c 82 1.62 tsutsui # for historic compatibility ufs == ffsv1 83 1.54 dsl SRCS+= ufs.c 84 1.19 cjs 85 1.1 brezak .include <bsd.lib.mk> 86 1.15 cgd 87 1.88 christos lib${LIB}.o:: ${OBJS:O} __buildstdlib 88 1.59 mrg 89 1.59 mrg CPPFLAGS+= -Wno-pointer-sign 90 1.75 mrg 91 1.82 mrg .if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax" 92 1.75 mrg COPTS.bootp.c+= -O0 93 1.75 mrg .endif 94