1 # $NetBSD: Makefile,v 1.69 2009/08/21 21:12:02 he Exp $
7 SA_USE_CREAD?
= no
# Read compressed kernels
8 SA_INCLUDE_NET?
= yes
# Netboot via TFTP, NFS
9 SA_USE_LOADFILE?
= no
# Generic executable loading support
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"
23 .PATH.c
: ${SADIR} ${.PARSEDIR
}/..
/..
/..
/common
/lib
/libc
/string
26 SRCS
+= alloc.c errno.c exit.c files.c \
27 getfile.c gets.c globals.c \
28 panic.c printf.c qsort.c snprintf.c sprintf.c strerror.c \
29 subr_prf.c twiddle.c vsprintf.c checkpasswd.c
31 .if
(${MACHINE_CPU} != "mips")
36 SRCS
+= memcmp.c memcpy.c memmove.c memset.c strchr.c
37 SRCS
+= bcopy.c bzero.c
# Remove me eventually.
40 SRCS
+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c
41 SRCS
+= close.c lseek.c open.c read.c write.c
42 .if
(${SA_USE_CREAD} == "yes")
43 CPPFLAGS
+= -D__INTERNAL_LIBSA_CREAD
47 .if
(${SA_USE_LOADFILE} == "yes")
48 SRCS
+= loadfile.c loadfile_ecoff.c loadfile_elf32.c \
50 .if
(${MACHINE_CPU} != "mips")
51 SRCS
+= loadfile_aout.c
55 .if
(${SA_INCLUDE_NET} == "yes")
57 SRCS
+= arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c
59 # network info services:
60 SRCS
+= bootp.c rarp.c bootparam.c
66 SRCS
+= ffsv1.c ffsv2.c ufs_ls.c
67 SRCS
+= lfsv1.c lfsv2.c
72 # for historic compatibility ufs == ffsv1
75 # only needed during build
82 @echo building standard
${LIB} library
84 @
${LD} -r
-o lib
${LIB}.o
`lorder ${OBJS} | tsort`
86 .if
(defined
(HAVE_GCC
) && ${HAVE_GCC} == 4) || defined
(HAVE_PCC
)
87 CPPFLAGS
+= -Wno-pointer-sign