1998-09-24 09:23:33 +04:00
|
|
|
# $NetBSD: Makefile,v 1.23 1998/09/24 05:23:33 ross Exp $
|
1994-01-26 05:03:32 +03:00
|
|
|
|
|
|
|
LIB= sa
|
1997-01-24 01:19:56 +03:00
|
|
|
NOPIC=
|
|
|
|
NOPROFILE=
|
1994-01-26 05:03:32 +03:00
|
|
|
|
1997-01-24 01:19:56 +03:00
|
|
|
SA_USE_CREAD?= no
|
|
|
|
SA_INCLUDE_NET?= yes
|
1995-09-15 00:55:00 +04:00
|
|
|
|
1997-01-24 01:19:56 +03:00
|
|
|
#DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DDEBUG -DPARANOID
|
1997-06-26 23:14:53 +04:00
|
|
|
CPPFLAGS= -I. ${SACPPFLAGS} ${SAMISCCPPFLAGS} \
|
1997-02-17 00:25:18 +03:00
|
|
|
-DCOMPAT_UFS ${DEBUGCPPFLAGS}
|
1995-09-15 00:55:00 +04:00
|
|
|
|
1997-10-27 01:08:38 +03:00
|
|
|
#COPTS+= -ansi -pedantic -Wall
|
1994-05-08 20:11:14 +04:00
|
|
|
|
|
|
|
# stand routines
|
|
|
|
SRCS+= alloc.c bcopy.c exit.c exec.c getfile.c gets.c globals.c \
|
1997-01-16 07:06:15 +03:00
|
|
|
memcmp.c memcpy.c printf.c strerror.c
|
1994-01-26 05:03:32 +03:00
|
|
|
|
|
|
|
# io routines
|
1997-01-24 01:19:56 +03:00
|
|
|
SRCS+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c
|
|
|
|
SRCS+= close.c lseek.c open.c read.c write.c
|
|
|
|
.if (${SA_USE_CREAD} == "yes")
|
|
|
|
CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
|
|
|
|
SRCS+= cread.c
|
|
|
|
.endif
|
1994-05-08 20:11:14 +04:00
|
|
|
|
1997-01-24 01:19:56 +03:00
|
|
|
.if (${SA_INCLUDE_NET} == "yes")
|
1994-05-08 20:11:14 +04:00
|
|
|
# network routines
|
|
|
|
SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c
|
1995-10-01 09:00:32 +03:00
|
|
|
.endif
|
1994-05-08 20:11:14 +04:00
|
|
|
|
|
|
|
# network info services:
|
1995-09-15 00:55:00 +04:00
|
|
|
SRCS+= bootp.c rarp.c bootparam.c
|
1994-01-26 05:03:32 +03:00
|
|
|
|
1994-05-08 20:11:14 +04:00
|
|
|
# boot filesystems
|
1998-09-24 09:23:33 +04:00
|
|
|
SRCS+= ufs.c nfs.c cd9660.c ustarfs.c
|
1994-01-26 05:03:32 +03:00
|
|
|
|
1997-06-01 01:21:13 +04:00
|
|
|
# only needed during build
|
|
|
|
libinstall::
|
|
|
|
|
1994-01-26 05:03:32 +03:00
|
|
|
.include <bsd.lib.mk>
|
1997-01-24 01:19:56 +03:00
|
|
|
|
|
|
|
lib${LIB}.o:: ${OBJS}
|
|
|
|
@echo building standard ${LIB} library
|
|
|
|
@rm -f lib${LIB}.o
|
|
|
|
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
|