Home | History | Annotate | Line # | Download | only in libsa
Makefile revision 1.63
      1  1.63       dsl #	$NetBSD: Makefile,v 1.63 2008/03/14 22:27:32 dsl Exp $
      2   1.1    brezak 
      3   1.1    brezak LIB=	sa
      4  1.49        tv NOPIC=	# defined
      5  1.49        tv NOPROFILE=# defined
      6   1.1    brezak 
      7  1.44   hubertf SA_USE_CREAD?= no		# Read compressed kernels
      8  1.44   hubertf SA_INCLUDE_NET?= yes		# Netboot via TFTP, NFS
      9  1.50   thorpej SA_USE_LOADFILE?= no		# Generic executable loading support
     10   1.7        pk 
     11  1.40     lukem #DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DNET_DEBUG -DDEBUG -DPARANOID
     12  1.32  drochner CPPFLAGS=	-I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \
     13  1.16       cgd 		-DCOMPAT_UFS ${DEBUGCPPFLAGS}
     14   1.7        pk 
     15  1.21     lukem #COPTS+= -ansi -pedantic -Wall
     16  1.32  drochner 
     17  1.32  drochner .PATH.c: ${SADIR}
     18   1.2    brezak 
     19   1.2    brezak # stand routines
     20  1.56  junyoung SRCS+=	alloc.c bcopy.c bzero.c errno.c exit.c exec.c files.c \
     21  1.51    simonb 	getfile.c gets.c globals.c memcmp.c memcpy.c memmove.c memset.c \
     22  1.63       dsl 	panic.c printf.c qsort.c snprintf.c sprintf.c strchr.c strerror.c \
     23  1.63       dsl 	subr_prf.c twiddle.c vsprintf.c checkpasswd.c
     24   1.1    brezak 
     25   1.1    brezak # io routines
     26  1.15       cgd SRCS+=	closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c
     27  1.15       cgd SRCS+=	close.c lseek.c open.c read.c write.c
     28  1.15       cgd .if (${SA_USE_CREAD} == "yes")
     29  1.15       cgd CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
     30  1.15       cgd SRCS+=	cread.c
     31  1.15       cgd .endif
     32   1.2    brezak 
     33  1.31  christos .if (${SA_USE_LOADFILE} == "yes")
     34  1.47   thorpej SRCS+=	loadfile.c loadfile_aout.c loadfile_ecoff.c loadfile_elf32.c \
     35  1.47   thorpej 	loadfile_elf64.c
     36  1.31  christos .endif
     37  1.54       dsl 
     38  1.15       cgd .if (${SA_INCLUDE_NET} == "yes")
     39   1.2    brezak # network routines
     40  1.58  christos SRCS+=	arp.c ether.c ether_sprintf.c ip_cksum.c net.c netif.c rpc.c udp.c
     41   1.2    brezak 
     42   1.2    brezak # network info services:
     43   1.7        pk SRCS+=	bootp.c rarp.c bootparam.c
     44   1.1    brezak 
     45   1.2    brezak # boot filesystems
     46  1.27  drochner SRCS+=	nfs.c tftp.c
     47  1.27  drochner .endif
     48  1.54       dsl 
     49  1.61   tsutsui SRCS+=	ffsv1.c ffsv2.c ufs_ls.c
     50  1.61   tsutsui SRCS+=	lfsv1.c lfsv2.c
     51  1.60   tsutsui SRCS+=	cd9660.c
     52  1.60   tsutsui SRCS+=	ustarfs.c
     53  1.60   tsutsui SRCS+=	dosfs.c
     54  1.60   tsutsui SRCS+=	ext2fs.c
     55  1.62   tsutsui # for historic compatibility ufs == ffsv1
     56  1.54       dsl SRCS+=	ufs.c
     57  1.19       cjs 
     58  1.19       cjs # only needed during build
     59  1.19       cjs libinstall::
     60   1.1    brezak 
     61  1.48        tv .undef DESTDIR
     62   1.1    brezak .include <bsd.lib.mk>
     63  1.15       cgd 
     64  1.15       cgd lib${LIB}.o:: ${OBJS}
     65  1.15       cgd 	@echo building standard ${LIB} library
     66  1.15       cgd 	@rm -f lib${LIB}.o
     67  1.15       cgd 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     68  1.59       mrg 
     69  1.59       mrg .if ${HAVE_GCC} == 4
     70  1.59       mrg CPPFLAGS+=	-Wno-pointer-sign
     71  1.59       mrg .endif
     72