Makefile revision 1.15
1#	$NetBSD: Makefile,v 1.15 1997/01/23 22:19:56 cgd Exp $
2
3LIB=	sa
4NOPIC=
5NOPROFILE=
6
7SA_USE_CREAD?= no
8SA_INCLUDE_NET?= yes
9
10#DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DDEBUG -DPARANOID
11CPPFLAGS=	-I. ${SACPPFLAGS} -DSTANDALONE -DCOMPAT_UFS ${DEBUGCPPFLAGS}
12
13#CFLAGS+= -ansi -pedantic -Wall
14
15# stand routines
16SRCS+=	alloc.c bcopy.c exit.c exec.c getfile.c gets.c globals.c \
17	memcmp.c memcpy.c printf.c strerror.c
18
19# io routines
20SRCS+=	closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c
21SRCS+=	close.c lseek.c open.c read.c write.c
22.if (${SA_USE_CREAD} == "yes")
23CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
24SRCS+=	cread.c
25.endif
26
27.if (${SA_INCLUDE_NET} == "yes")
28# network routines
29SRCS+=	arp.c ether.c in_cksum.c net.c netif.c rpc.c
30.endif
31
32# network info services:
33SRCS+=	bootp.c rarp.c bootparam.c
34
35# boot filesystems
36SRCS+=	ufs.c nfs.c cd9660.c
37
38install:
39
40.include <bsd.lib.mk>
41
42lib${LIB}.o:: ${OBJS}
43	@echo building standard ${LIB} library
44	@rm -f lib${LIB}.o
45	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
46