NetBSD/sys/lib/libsa/Makefile

59 lines
1.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.52 2003/02/23 23:17:42 simonb Exp $
1994-01-26 05:03:32 +03:00
LIB= sa
2001-12-12 04:48:43 +03:00
NOPIC= # defined
NOPROFILE=# defined
1994-01-26 05:03:32 +03:00
SA_USE_CREAD?= no # Read compressed kernels
SA_INCLUDE_NET?= yes # Netboot via TFTP, NFS
SA_USE_LOADFILE?= no # Generic executable loading support
1995-09-15 00:55:00 +04:00
#DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID
CPPFLAGS= -I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \
-DCOMPAT_UFS ${DEBUGCPPFLAGS}
1995-09-15 00:55:00 +04:00
#COPTS+= -ansi -pedantic -Wall
.PATH.c: ${SADIR}
# stand routines
SRCS+= alloc.c bcmp.c bcopy.c bzero.c errno.c exit.c exec.c files.c \
getfile.c gets.c globals.c memcmp.c memcpy.c memmove.c memset.c \
panic.c printf.c snprintf.c sprintf.c strerror.c subr_prf.c \
twiddle.c vsprintf.c checkpasswd.c
1994-01-26 05:03:32 +03:00
# io routines
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
.if (${SA_USE_LOADFILE} == "yes")
SRCS+= loadfile.c loadfile_aout.c loadfile_ecoff.c loadfile_elf32.c \
loadfile_elf64.c
.endif
.if (${SA_INCLUDE_NET} == "yes")
# network routines
2000-10-25 05:49:55 +04:00
SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c udp.c
# 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
# boot filesystems
SRCS+= nfs.c tftp.c
.endif
SRCS+= lfsv1.c lfsv2.c ufs.c ufs_ls.c cd9660.c ustarfs.c dosfs.c
1994-01-26 05:03:32 +03:00
# only needed during build
libinstall::
.undef DESTDIR
1994-01-26 05:03:32 +03:00
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS}
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`