1 1.4 joerg # $NetBSD: Makefile,v 1.4 2014/08/08 16:56:32 joerg Exp $ 2 1.1 garbled 3 1.1 garbled S= ${.CURDIR}/../../../.. 4 1.1 garbled 5 1.3 matt .include <bsd.klinks.mk> 6 1.3 matt 7 1.1 garbled NOMAN= # defined 8 1.1 garbled 9 1.1 garbled CPPFLAGS+= -D_STANDALONE 10 1.1 garbled CPPFLAGS+= -D__daddr_t=int32_t 11 1.1 garbled CPPFLAGS+= -I. -I${S} -I${.OBJDIR} 12 1.1 garbled CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-pointer-sign 13 1.1 garbled 14 1.4 joerg CFLAGS= -Os -ffreestanding 15 1.1 garbled 16 1.1 garbled .include <bsd.prog.mk> 17 1.1 garbled 18 1.1 garbled ### find out what to use for libkern 19 1.1 garbled KERN_AS= library 20 1.1 garbled .include "${S}/lib/libkern/Makefile.inc" 21 1.1 garbled LIBKERN= ${KERNLIB} 22 1.1 garbled 23 1.1 garbled ### find out what to use for libz 24 1.1 garbled Z_AS= library 25 1.1 garbled .include "${S}/lib/libz/Makefile.inc" 26 1.1 garbled LIBZ= ${ZLIB} 27 1.1 garbled 28 1.1 garbled ### find out what to use for libsa 29 1.1 garbled SA_AS= library 30 1.1 garbled SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes SA_INCLUDE_NET=no 31 1.1 garbled .include "${S}/lib/libsa/Makefile.inc" 32 1.1 garbled LIBSA= ${SALIB} 33 1.1 garbled 34 1.1 garbled LIBS= ${LIBSA} ${LIBZ} ${LIBKERN} 35 1.1 garbled 36 1.3 matt realall: ${LIBS} 37