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