Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / zaurus / stand / zboot / Makefile
blob8842a727a98d45a42142d5eb4cf595a779142066
1 # $NetBSD: Makefile,v 1.2 2009/03/03 09:20:55 nonaka Exp $
3 PROG= zboot
5 S= ${.CURDIR}/../../../..
7 SRCS= crt0.c
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
12 NOMAN= # defined
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
19 AFLAGS+= -D_LOCORE
20 LDFLAGS+= -nostdlib -Bstatic
22 CLEANFILES+= vers.c vers.o
24 LIBCRT0= crt0.o
25 LIBC= # nothing
26 LIBCRTBEGIN= # nothing
27 LIBCRTEND= # nothing
29 NEWVERSWHAT?= "Boot"
30 VERSIONFILE?= ${.CURDIR}/version
32 ### find out what to use for libkern
33 KERN_AS= library
34 .include "${S}/lib/libkern/Makefile.inc"
35 LIBKERN= ${KERNLIB}
37 ### find out what to use for libz
38 Z_AS= library
39 .include "${S}/lib/libz/Makefile.inc"
40 LIBZ= ${ZLIB}
42 ### find out what to use for libsa
43 SA_AS= library
44 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
45 .include "${S}/lib/libsa/Makefile.inc"
46 LIBSA= ${SALIB}
48 ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
49 ${HOST_SH} ${S}/conf/newvers_stand.sh ${VERSIONFILE} ${MACHINE} ${NEWVERSWHAT}
50 ${CC} -c vers.c
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
58 cleanlibdir:
59 -rm -rf lib
61 release: check_RELEASEDIR
62 ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
63 ${RELEASEDIR}/${MACHINE}/installation