Annotation of sys/lib/libsa/Makefile, Revision 1.1.1.1
1.1 nbrk 1: # $OpenBSD: Makefile,v 1.22 2005/05/24 22:25:46 millert Exp $
2: # $NetBSD: Makefile,v 1.13 1996/10/02 16:19:51 ws Exp $
3:
4: LIB= sa
5:
6: DIR=${SAREL}${SADIR}
7:
8: .PATH: ${DIR}
9:
10: #DEBUGFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DDEBUG -DPARANOID -Wall
11: #DEBUGFLAGS= -Wall
12: AFLAGS+=${XAFLAGS}
13: CFLAGS+=${XCFLAGS} -D_STANDALONE -DCOMPAT_UFS $(DEBUGFLAGS) -I${DIR} -I${DIR}/../..
14: #
15: # Needed for PowerPC
16: CFLAGS+=$(EXTRACFLAGS)
17: CPPFLAGS+=${XCPPFLAGS}
18:
19: .if defined(USE_LOADFILE)
20: SRCS+= loadfile.c
21: .endif
22:
23: .if defined(SA_ZLIB)
24: CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
25: .endif
26:
27: # stand routines
28: SRCS+= alloc.c memcpy.c exit.c exec.c getfile.c gets.c globals.c \
29: printf.c snprintf.c strerror.c strcmp.c memset.c memcmp.c \
30: strncpy.c strncmp.c strchr.c
31:
32: # math from libkern
33: SRCS+= divdi3.c qdivrem.c
34: .PATH: ${DIR}/../../lib/libkern
35:
36: # io routines
37: SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c cons.c ioctl.c \
38: lseek.c open.c nullfs.c read.c stat.c fstat.c write.c readdir.c
39:
40: # unix device
41: # SRCS+= unixdev.c
42:
43: # boot filesystems
44: SRCS+= ufs.c cd9660.c
45:
46: .if defined(SA_ZLIB)
47: SRCS+= cread.c
48: .endif
49:
50: .if !defined(NO_NET)
51: SRCS+= nfs.c
52:
53: # network routines
54: SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c
55:
56: # network info services:
57: SRCS+= bootp.c rarp.c bootparam.c
58:
59: .else
60: # C flags
61: CFLAGS+=-DNO_NET
62: .endif
63:
64:
65: NOPROFILE=
66: NOPIC=
67: OBJMACHINE=
68:
69: install:
70:
71: .include <bsd.lib.mk>
CVSweb