Makefile revision 1.6
1# $NetBSD: Makefile,v 1.6 2003/03/30 08:01:13 tsutsui Exp $ 2 3S= ${.CURDIR}/../../../.. 4 5NOMAN= # defined 6 7CFLAGS= -Os -Wall 8 9CPPFLAGS+= -D_STANDALONE 10CPPFLAGS+= -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET 11CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I. 12CPPFLAGS+= -D__daddr_t=int32_t 13AFLAGS= -D_LOCORE 14 15CLEANFILES+= machine m68k 16 17.BEGIN: machine m68k 18.NOPATH: machine m68k 19realdepend realall: machine m68k 20 21machine:: 22 -rm -f $@ 23 ln -s ${S}/arch/${MACHINE}/include $@ 24 25m68k:: 26 -rm -f $@ 27 ln -s ${S}/arch/m68k/include $@ 28 29${OBJS}: machine m68k 30 31### find out what to use for libkern 32KERN_AS= library 33.include "${S}/lib/libkern/Makefile.inc" 34LIBKERN= ${KERNLIB} 35 36### find out what to use for libz 37Z_AS= library 38.include "${S}/lib/libz/Makefile.inc" 39LIBZ= ${ZLIB} 40 41### find out what to use for libsa 42SA_AS= library 43SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes 44.include "${S}/lib/libsa/Makefile.inc" 45LIBSA= ${SALIB} 46 47LIBS= ${LIBSA} ${LIBZ} ${LIBKERN} 48 49realall: ${LIBS} 50 51cleandir distclean: cleanlibdir 52 53cleanlibdir: 54 -rm -rf lib 55 56.include <bsd.prog.mk> 57