1 # $NetBSD: Makefile,v 1.26 2009/03/19 10:19:33 tsutsui Exp $
4 S
!= cd
${.CURDIR
}/..
/..
/..
/..
; pwd
6 DIR_KERN
=${S}/lib
/libkern
${S}/lib
/libkern
/arch
/m68k
7 DIR_LIBC
=${S}/..
/common
/lib
/libc
9 # DEBUG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
10 # -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM
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
27 .
include <bsd.prog.mk
>
29 ### find out what to use for libkern
31 .
include "${S}/lib/libkern/Makefile.inc"
34 ### find out what to use for libsa
36 SAMISCMAKEFLAGS
= SA_USE_LOADFILE
=yes SA_EXTRADIR
=${.CURDIR
}
37 .
include "${S}/lib/libsa/Makefile.inc"
40 LIBS
= ${LIBSA} ${LIBKERN}
44 cleandir
distclean: cleanlibdir