Makefile revision 1.32
1#	$NetBSD: Makefile,v 1.32 1999/05/07 14:28:51 drochner Exp $
2
3LIB=	sa
4MKPIC=	no
5MKPROFILE=no
6
7SA_USE_CREAD?= no
8SA_INCLUDE_NET?= yes
9SA_USE_LOADFILE?= no
10
11#DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DDEBUG -DPARANOID
12CPPFLAGS=	-I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \
13		-DCOMPAT_UFS ${DEBUGCPPFLAGS}
14
15#COPTS+= -ansi -pedantic -Wall
16
17.PATH.c: ${SADIR}
18
19# stand routines
20SRCS+=	alloc.c bcmp.c bcopy.c bzero.c errno.c exit.c exec.c getfile.c gets.c \
21	globals.c memcmp.c memcpy.c memset.c panic.c printf.c \
22	snprintf.c sprintf.c strerror.c subr_prf.c twiddle.c vsprintf.c
23
24# io routines
25SRCS+=	closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c
26SRCS+=	close.c lseek.c open.c read.c write.c
27.if (${SA_USE_CREAD} == "yes")
28CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
29SRCS+=	cread.c
30.endif
31
32.if (${SA_USE_LOADFILE} == "yes")
33SRCS+=	loadfile.c
34.endif
35.if (${SA_INCLUDE_NET} == "yes")
36# network routines
37SRCS+=	arp.c ether.c in_cksum.c net.c netif.c rpc.c
38
39# network info services:
40SRCS+=	bootp.c rarp.c bootparam.c
41
42# boot filesystems
43SRCS+=	nfs.c tftp.c
44.endif
45SRCS+=	ufs.c ufs_ls.c cd9660.c ustarfs.c
46
47# only needed during build
48libinstall::
49
50.include <bsd.lib.mk>
51
52lib${LIB}.o:: ${OBJS}
53	@echo building standard ${LIB} library
54	@rm -f lib${LIB}.o
55	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
56