Remove building with NOCRYPTO option
[minix.git] / sys / lib / libsa / Makefile
blobc2a4a0eaeac023e24391719cd59bf2ce1e2e9d28
1 # $NetBSD: Makefile,v 1.86 2015/09/07 03:44:19 uebayasi Exp $
3 LIB= sa
4 LIBISPRIVATE?= yes
6 SA_USE_CREAD?= no # Read compressed kernels
7 SA_INCLUDE_NET?= yes # Netboot via TFTP, NFS
8 SA_USE_LOADFILE?= no # Generic executable loading support
9 SA_ENABLE_LS_OP?= no # Filesystems ls operation
11 #DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID
12 CPPFLAGS= -I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \
13 -DCOMPAT_UFS ${DEBUGCPPFLAGS}
15 #COPTS+= -ansi -pedantic -Wall
17 .if defined(SA_EXTRADIR)
18 .-include "${SA_EXTRADIR}/Makefile.inc"
19 .endif
21 .include <bsd.own.mk>
23 .PATH.c: ${SADIR} ${.PARSEDIR}/../../../common/lib/libc/string
25 # stand routines
26 SRCS+= alloc.c atoi.c errno.c exit.c files.c \
27 getfile.c gets.c globals.c \
28 panic.c printf.c qsort.c snprintf.c strerror.c \
29 subr_prf.c twiddle.c checkpasswd.c
31 SRCS+= bootcfg.c
33 # string routines
34 .if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
35 SRCS+= memcmp.c memcpy.c memmove.c memset.c strchr.c
36 .endif
37 .if !defined(__MINIX)
38 SRCS+= bcopy.c bzero.c # Remove me eventually.
39 .endif # !defined(__MINIX)
41 # io routines
42 SRCS+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c
43 SRCS+= close.c lseek.c open.c read.c write.c
44 .if (${SA_USE_CREAD} == "yes")
45 CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
46 SRCS+= cread.c
47 .endif
48 .if (${SA_ENABLE_LS_OP} == "yes")
49 SRCS+= ls.c
50 .endif
52 .if (${SA_USE_LOADFILE} == "yes")
53 .if !defined(__MINIX)
54 SRCS+= loadfile.c loadfile_ecoff.c loadfile_elf32.c lookup_elf32.c \
55 loadfile_elf64.c lookup_elf64.c
56 .if (${MACHINE_CPU} != "mips")
57 SRCS+= loadfile_aout.c
58 .endif
59 .else
60 SRCS+= loadfile.c loadfile_elf32.c loadfile_elf64.c
61 .endif # !defined(__MINIX)
62 .endif
64 .if (${SA_INCLUDE_NET} == "yes")
65 # network routines
66 SRCS+= arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c ip.c
68 # network info services:
69 SRCS+= bootp.c rarp.c bootparam.c
71 # boot filesystems
72 SRCS+= nfs.c tftp.c
73 .endif
75 SRCS+= ffsv1.c ffsv2.c
76 SRCS+= lfsv1.c lfsv2.c
77 SRCS+= cd9660.c
78 SRCS+= ustarfs.c
79 SRCS+= dosfs.c
80 SRCS+= ext2fs.c
81 SRCS+= minixfs3.c
82 SRCS+= fnmatch.c
83 # for historic compatibility ufs == ffsv1
84 SRCS+= ufs.c
86 .if defined(__MINIX)
87 # NetBSD has it in libkern, MINIX lacks it
88 SRCS+= xlat_mbr_fstype.c
89 .PATH.c: ${NETBSDSRCDIR}/sys/lib/libkern
91 # NetBSD has it in libkern, MINIX has it in libc but not libminc...
92 SRCS+= md5c.c
93 .PATH.c: ${NETBSDSRCDIR}/common/lib/libc/md
94 .endif # defined(__MINIX)
96 .include <bsd.lib.mk>
98 lib${LIB}.o:: ${OBJS:O}
99 @echo building standard ${LIB} library
100 @rm -f lib${LIB}.o
101 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
102 @echo done
104 CPPFLAGS+= -Wno-pointer-sign
106 .if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
107 COPTS.bootp.c+= -O0
108 .endif