1 # $NetBSD: Makefile,v 1.27 2009/03/20 11:42:25 tsutsui Exp $ 2 3 # Logically src/sys 4 S!= cd ${.CURDIR}/../../../..; pwd 5 DIR_SA=${S}/lib/libsa 6 DIR_KERN=${S}/lib/libkern ${S}/lib/libkern/arch/m68k 7 DIR_LIBC=${S}/../common/lib/libc 8 9 # DEBUG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ 10 # -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM 11 12 CPUFLAGS= # ignore settings in /etc/mk.conf 13 DEFS= -Dsun3 -D_STANDALONE -D__daddr_t=int32_t 14 INCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S} -I${S}/arch 15 AFLAGS= -Wa,-mc68020 -Wa,-mc68851 16 CFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -msoft-float 17 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith 18 COPTS= -Os -fno-defer-pop -ffreestanding 19 CPPFLAGS= ${DEFS} ${DEBUG} ${INCL} 20 CLEANFILES= SRT0.o SRT1.o vers.c 21 22 SRCS= SRT0.S SRT1.c 23 OBJS= SRT0.o SRT1.o 24 25 realall: ${OBJS} 26 27 .include <bsd.prog.mk> 28 29 ### find out what to use for libkern 30 KERN_AS= library 31 .include "${S}/lib/libkern/Makefile.inc" 32 LIBKERN= ${KERNLIB} 33 34 ### find out what to use for libsa 35 SA_AS= library 36 SAMISCMAKEFLAGS= SA_USE_LOADFILE=yes SA_EXTRADIR=${.CURDIR} 37 .include "${S}/lib/libsa/Makefile.inc" 38 LIBSA= ${SALIB} 39 40 LIBS= ${LIBSA} ${LIBKERN} 41 42 realall: ${LIBS} 43 44 cleandir distclean: cleanlibdir 45 46 cleanlibdir: 47 -rm -rf lib 48