1 # $NetBSD: Makefile,v 1.24 2009/01/12 07:56:31 tsutsui Exp $
3 S
= ${.CURDIR
}/..
/..
/..
/..
5 LIBKERNDIR
= $S/lib
/libkern
7 LIBZDIST
= $S/..
/common
/dist/zlib
11 SRCS
+= alloc.c bcopy.c bzero.c errno.c getfile.c gets.c
12 SRCS
+= memcmp.c memcpy.c memmove.c memset.c panic.c
13 SRCS
+= printf.c snprintf.c sprintf.c subr_prf.c twiddle.c vsprintf.c
15 SRCS
+= close.c closeall.c cread.c dev.c fstat.c ioctl.c lseek.c
16 SRCS
+= open.c read.c stat.c
17 SRCS
+= loadfile.c loadfile_aout.c loadfile_elf32.c
18 SRCS
+= cd9660.c lfsv1.c lfsv2.c nfs.c ufs.c ufs_ls.c ustarfs.c
20 #SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c udp.c
23 SRCS
+= ashldi3.c ashrdi3.c divdi3.c moddi3.c qdivrem.c
24 SRCS
+= strcat.c strchr.c strcmp.c strcpy.c strerror.c strlen.c
25 SRCS
+= strncmp.c strrchr.c
27 SRCS
+= adler32.c crc32.c inffast.c
28 SRCS
+= inflate.c inftrees.c uncompr.c
30 SRCS
+= consio.c devopen.c parseutils.c sdcd.c fd.c fdsub.S chdsk.c
37 CPPFLAGS
+= -I
${.OBJDIR
} -I
${LIBSADIR} -I
$S -I
${LIBZDIR} -I
${LIBZDIST}
38 CPPFLAGS
+= -I
${.CURDIR
}/..
/libiocs
-I
${.CURDIR
}/..
/common
39 CPPFLAGS
+= -D_STANDALONE
40 CPPFLAGS
+= -DHEAP_VARIABLE
-D__INTERNAL_LIBSA_CREAD
41 CPPFLAGS
+= -DHAVE_CHANGEDISK_HOOK
42 CPPFLAGS
+= -DUSTAR_SECT_PER_CYL
=16
45 .PATH
: ${LIBSADIR} ${LIBKERNDIR} ${LIBZDIR} ${LIBZDIST}
47 .
include "../Makefile.booters"
48 .
include "${S}/../common/lib/libc/Makefile.inc"
50 # only needed during build