xref: /netbsd/sys/arch/x68k/stand/libsa/Makefile (revision 7e950cc6)
1*7e950cc6Sminoura#	$NetBSD: Makefile,v 1.1 2001/09/27 10:03:27 minoura Exp $
2*7e950cc6Sminoura
3*7e950cc6SminouraS=		${.CURDIR}/../../../..
4*7e950cc6SminouraLIBSADIR=	$S/lib/libsa
5*7e950cc6SminouraLIBKERNDIR=	$S/lib/libkern
6*7e950cc6SminouraLIBZDIR=	$S/lib/libz
7*7e950cc6Sminoura
8*7e950cc6SminouraLIB=		sa
9*7e950cc6Sminoura
10*7e950cc6SminouraSRCS+=		alloc.c bcmp.c bcopy.c bzero.c errno.c getfile.c gets.c
11*7e950cc6SminouraSRCS+=		memcmp.c memcpy.c memset.c panic.c
12*7e950cc6SminouraSRCS+=		printf.c snprintf.c sprintf.c subr_prf.c twiddle.c vsprintf.c
13*7e950cc6Sminoura
14*7e950cc6SminouraSRCS+=		close.c closeall.c cread.c dev.c fstat.c ioctl.c lseek.c
15*7e950cc6SminouraSRCS+=		open.c read.c stat.c
16*7e950cc6SminouraSRCS+=		loadfile.c
17*7e950cc6SminouraSRCS+=		cd9660.c lfs.c nfs.c ufs.c ustarfs.c
18*7e950cc6SminouraSRCS+=		arp.c ether.c in_cksum.c net.c netif.c rpc.c udp.c
19*7e950cc6SminouraSRCS+=		bootp.c
20*7e950cc6Sminoura
21*7e950cc6SminouraSRCS+=		ashrdi3.c strcat.c strchr.c strcmp.c strncmp.c strcpy.c strerror.c strlen.c
22*7e950cc6Sminoura
23*7e950cc6SminouraSRCS+=		adler32.c crc32.c infblock.c infcodes.c inffast.c
24*7e950cc6SminouraSRCS+=		inflate.c inftrees.c infutil.c uncompr.c
25*7e950cc6Sminoura
26*7e950cc6SminouraSRCS+=		consio.c devopen.c parseutils.c sdcd.c fd.c fdsub.S
27*7e950cc6Sminoura
28*7e950cc6SminouraMKPROFILE=	no
29*7e950cc6SminouraMKPIC=		no
30*7e950cc6SminouraMKLINT=		no
31*7e950cc6Sminoura
32*7e950cc6SminouraCPPFLAGS+=	-I${.OBJDIR} -I${LIBSADIR} -I$S -I${LIBZDIR} -D_STANDALONE
33*7e950cc6SminouraCPPFLAGS+=	-I${.CURDIR}/../libiocs -I${.CURDIR}/../common
34*7e950cc6SminouraCPPFLAGS+=	-DHEAP_VARIABLE -D__INTERNAL_LIBSA_CREAD
35*7e950cc6SminouraCPPFLAGS+=	-D_ZLIB_PRIVATE
36*7e950cc6Sminoura#CPPFLAGS+=	-DDEBUG
37*7e950cc6Sminoura
38*7e950cc6Sminoura.PATH:	${LIBSADIR} ${LIBKERNDIR} ${LIBZDIR}
39*7e950cc6Sminoura
40*7e950cc6Sminoura.if !make(obj)
41*7e950cc6Sminoura.BEGIN:
42*7e950cc6Sminoura	@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
43*7e950cc6Sminoura	@([ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH})
44*7e950cc6Sminoura.NOPATH: machine m68k
45*7e950cc6SminouraCLEANFILES+= machine m68k
46*7e950cc6Sminoura.endif
47*7e950cc6Sminoura
48*7e950cc6Sminoura.include <bsd.lib.mk>
49