1 # $NetBSD: Makefile,v 1.2 2009/03/03 09:20:55 nonaka Exp $
5 S
= ${.CURDIR
}/..
/..
/..
/..
8 SRCS
+= boot.c bootinfo.c bootmenu.c conf.c devopen.c diskprobe.c
9 SRCS
+= loadfile_zboot.c
10 SRCS
+= getsecs.c termios.c unixcons.c unixdev.c unixsys.S
14 CFLAGS
+= -Wall
-Wno-main
15 CFLAGS
+= -Wmissing-prototypes
-Wstrict-prototypes
-Wpointer-arith
16 CFLAGS
+= -fno-stack-protector
-fno-builtin
-ffreestanding
17 CPPFLAGS
+= -nostdinc
-I.
-I
${.CURDIR
} -I
${.OBJDIR
} -I
${S}
18 CPPFLAGS
+= -D_STANDALONE
-DHEAP_VARIABLE
20 LDFLAGS
+= -nostdlib
-Bstatic
22 CLEANFILES
+= vers.c vers.o
26 LIBCRTBEGIN
= # nothing
30 VERSIONFILE?
= ${.CURDIR
}/version
32 ### find out what to use for libkern
34 .
include "${S}/lib/libkern/Makefile.inc"
37 ### find out what to use for libz
39 .
include "${S}/lib/libz/Makefile.inc"
42 ### find out what to use for libsa
44 SAMISCMAKEFLAGS
= SA_USE_CREAD
=yes SA_USE_LOADFILE
=yes
45 .
include "${S}/lib/libsa/Makefile.inc"
48 ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
49 ${HOST_SH} ${S}/conf
/newvers_stand.sh
${VERSIONFILE} ${MACHINE} ${NEWVERSWHAT}
51 ${LD} ${LDFLAGS} -o
${PROG} ${OBJS} vers.o
${LIBSA} ${LIBZ} ${LIBKERN}
53 .
include <bsd.klinks.mk
>
54 .
include <bsd.prog.mk
>
56 cleandir
distclean: cleanlibdir
61 release
: check_RELEASEDIR
62 ${HOST_INSTALL_FILE} -m
${BINMODE} ${PROG} \
63 ${RELEASEDIR}/${MACHINE}/installation