xref: /netbsd-src/sys/lib/libsa/Makefile (revision 84d0ab551791493d2630bbef27063a9d514b9108)
1#	$NetBSD: Makefile,v 1.20 1997/06/26 19:14:53 drochner 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} ${SAMISCCPPFLAGS} \
12		-DCOMPAT_UFS ${DEBUGCPPFLAGS}
13
14#CFLAGS+= -ansi -pedantic -Wall
15
16# stand routines
17SRCS+=	alloc.c bcopy.c exit.c exec.c getfile.c gets.c globals.c \
18	memcmp.c memcpy.c printf.c strerror.c
19
20# io routines
21SRCS+=	closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c
22SRCS+=	close.c lseek.c open.c read.c write.c
23.if (${SA_USE_CREAD} == "yes")
24CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
25SRCS+=	cread.c
26.endif
27
28.if (${SA_INCLUDE_NET} == "yes")
29# network routines
30SRCS+=	arp.c ether.c in_cksum.c net.c netif.c rpc.c
31.endif
32
33# network info services:
34SRCS+=	bootp.c rarp.c bootparam.c
35
36# boot filesystems
37SRCS+=	ufs.c nfs.c cd9660.c
38
39# only needed during build
40libinstall::
41
42.include <bsd.lib.mk>
43
44lib${LIB}.o:: ${OBJS}
45	@echo building standard ${LIB} library
46	@rm -f lib${LIB}.o
47	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
48