Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / sun68k / stand / libsa / Makefile
blob2592c0329ceae57dfd134bc8842bbd10dd8fc90b
1 # $NetBSD: Makefile,v 1.26 2009/03/19 10:19:33 tsutsui Exp $
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
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
22 SRCS= SRT0.S SRT1.c
23 OBJS= SRT0.o SRT1.o
25 realall: ${OBJS}
27 .include <bsd.prog.mk>
29 ### find out what to use for libkern
30 KERN_AS= library
31 .include "${S}/lib/libkern/Makefile.inc"
32 LIBKERN= ${KERNLIB}
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}
40 LIBS= ${LIBSA} ${LIBKERN}
42 realall: ${LIBS}
44 cleandir distclean: cleanlibdir
46 cleanlibdir:
47 -rm -rf lib