Home | History | Annotate | Line # | Download | only in libsa
      1  1.98       rin #	$NetBSD: Makefile,v 1.98 2024/06/29 08:00:06 rin Exp $
      2   1.1    brezak 
      3   1.1    brezak LIB=	sa
      4  1.79      matt LIBISPRIVATE?= yes
      5  1.96  christos NOSSP=yes
      6  1.96  christos NOFORTIFY=yes
      7   1.1    brezak 
      8  1.44   hubertf SA_USE_CREAD?= no		# Read compressed kernels
      9  1.44   hubertf SA_INCLUDE_NET?= yes		# Netboot via TFTP, NFS
     10  1.50   thorpej SA_USE_LOADFILE?= no		# Generic executable loading support
     11  1.76   tsutsui SA_ENABLE_LS_OP?= no		# Filesystems ls operation
     12  1.91       rin SA_ENABLE_BIENDIAN?= no		# Biendian support
     13  1.91       rin 				# (currently only for loadfile_elf*)
     14   1.7        pk 
     15  1.66   mlelstv #DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID
     16  1.32  drochner CPPFLAGS=	-I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \
     17  1.16       cgd 		-DCOMPAT_UFS ${DEBUGCPPFLAGS}
     18   1.7        pk 
     19  1.21     lukem #COPTS+= -ansi -pedantic -Wall
     20  1.32  drochner 
     21  1.89  christos # For testing
     22  1.90  christos #WARNS=6
     23  1.90  christos #COPTS+=-ffreestanding -Wpointer-sign
     24  1.90  christos #CPPFLAGS+= -I${.CURDIR}/../../ -I${.CURDIR}
     25  1.89  christos 
     26  1.68   tsutsui .if defined(SA_EXTRADIR)
     27  1.68   tsutsui .-include "${SA_EXTRADIR}/Makefile.inc"
     28  1.68   tsutsui .endif
     29  1.68   tsutsui 
     30  1.69        he .include <bsd.own.mk>
     31  1.69        he 
     32  1.98       rin .PATH.c: ${SADIR} \
     33  1.98       rin 	${.PARSEDIR}/../../../common/lib/libc/stdlib \
     34  1.98       rin 	${.PARSEDIR}/../../../common/lib/libc/string
     35   1.2    brezak 
     36   1.2    brezak # stand routines
     37  1.84     isaki SRCS+=	alloc.c atoi.c errno.c exit.c files.c \
     38  1.98       rin 	getfile.c getopt.c gets.c globals.c \
     39  1.81  christos 	panic.c printf.c qsort.c snprintf.c strerror.c \
     40  1.81  christos 	subr_prf.c twiddle.c checkpasswd.c
     41   1.1    brezak 
     42  1.83       rtr SRCS+=	bootcfg.c
     43  1.83       rtr 
     44  1.64  christos # string routines
     45  1.73     joerg .if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
     46  1.64  christos SRCS+=	memcmp.c memcpy.c memmove.c memset.c strchr.c
     47  1.73     joerg .endif
     48  1.65  christos SRCS+=	bcopy.c bzero.c	# Remove me eventually.
     49  1.64  christos 
     50   1.1    brezak # io routines
     51  1.94       mrg SRCS+=	closeall.c dev.c disklabel.c ioctl.c nullfs.c stat.c fstat.c
     52  1.15       cgd SRCS+=	close.c lseek.c open.c read.c write.c
     53  1.15       cgd .if (${SA_USE_CREAD} == "yes")
     54  1.15       cgd CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
     55  1.15       cgd SRCS+=	cread.c
     56  1.15       cgd .endif
     57  1.76   tsutsui .if (${SA_ENABLE_LS_OP} == "yes")
     58  1.76   tsutsui SRCS+= ls.c
     59  1.76   tsutsui .endif
     60   1.2    brezak 
     61  1.31  christos .if (${SA_USE_LOADFILE} == "yes")
     62  1.71    martin SRCS+=	loadfile.c loadfile_ecoff.c loadfile_elf32.c lookup_elf32.c \
     63  1.71    martin 	loadfile_elf64.c lookup_elf64.c
     64  1.70        he .if (${MACHINE_CPU} != "mips")
     65  1.70        he SRCS+=	loadfile_aout.c
     66  1.70        he .endif
     67  1.31  christos .endif
     68  1.54       dsl 
     69  1.15       cgd .if (${SA_INCLUDE_NET} == "yes")
     70   1.2    brezak # network routines
     71  1.72    zoltan SRCS+=	arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c ip.c
     72   1.2    brezak 
     73   1.2    brezak # network info services:
     74   1.7        pk SRCS+=	bootp.c rarp.c bootparam.c
     75   1.1    brezak 
     76   1.2    brezak # boot filesystems
     77  1.27  drochner SRCS+=	nfs.c tftp.c
     78  1.27  drochner .endif
     79  1.54       dsl 
     80  1.91       rin .if (${SA_ENABLE_BIENDIAN} == "yes")
     81  1.91       rin CPPFLAGS+=	-DLIBSA_BIENDIAN_SUPPORT
     82  1.91       rin SRCS+=		byteorder.c
     83  1.91       rin .endif
     84  1.91       rin 
     85  1.95       mrg SRCS+=	ffsv1.c ffsv2.c ffs_bswap.c
     86  1.61   tsutsui SRCS+=	lfsv1.c lfsv2.c
     87  1.60   tsutsui SRCS+=	cd9660.c
     88  1.60   tsutsui SRCS+=	ustarfs.c
     89  1.60   tsutsui SRCS+=	dosfs.c
     90  1.60   tsutsui SRCS+=	ext2fs.c
     91  1.77  christos SRCS+=	minixfs3.c
     92  1.77  christos SRCS+=	fnmatch.c
     93  1.62   tsutsui # for historic compatibility ufs == ffsv1
     94  1.54       dsl SRCS+=	ufs.c
     95  1.19       cjs 
     96   1.1    brezak .include <bsd.lib.mk>
     97  1.15       cgd 
     98  1.88  christos lib${LIB}.o:: ${OBJS:O} __buildstdlib
     99  1.59       mrg 
    100  1.59       mrg CPPFLAGS+=	-Wno-pointer-sign
    101