1 # $NetBSD: Makefile,v 1.9 2006/04/10 17:58:59 garbled Exp $
3 S
= ${.CURDIR
}/..
/..
/..
/..
7 CPPFLAGS
+= -D_STANDALONE
8 CPPFLAGS
+= -D__daddr_t
=int32_t
9 CPPFLAGS
+= -I.
-I
${S} -I
${.OBJDIR
}
10 CPPFLAGS
+= -Werror
-Wall
-Wstrict-prototypes
-Wmissing-prototypes
12 CFLAGS
= -Os
-mmultiple
-ffreestanding
14 CLEANFILES
+= machine powerpc
16 .if
!make
(obj
) && !make
(clean) && !make
(cleandir
)
18 beforedepend
: machine-links
22 ln
-s
${S}/arch
/${MACHINE}/include machine
23 -rm -f
${MACHINE_ARCH}
24 ln
-s
${S}/arch
/${MACHINE_ARCH}/include ${MACHINE_ARCH}
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 libz
36 .
include "${S}/lib/libz/Makefile.inc"
39 ### find out what to use for libsa
41 SAMISCMAKEFLAGS
= SA_USE_CREAD
=yes SA_USE_LOADFILE
=yes SA_INCLUDE_NET
=no
42 .
include "${S}/lib/libsa/Makefile.inc"
45 LIBS
= ${LIBSA} ${LIBZ} ${LIBKERN}
47 realall
: machine-links
${LIBS}
49 cleandir
distclean: cleanlibdir