Makefile revision 1.18
1#	$NetBSD: Makefile,v 1.18 2020/04/23 00:11:29 joerg Exp $
2
3PROG=		bootxx
4PROGSOURCE=	bootxx.c
5
6.include "../Makefile.buildboot"
7
8CPPFLAGS+=	-DBOOTXX -DLIBSA_NO_CLOSE
9STRIPFLAG=
10LINKFLAGS=	-N -Ttext ${RELOC_BOOTXX} -e start
11CLEANFILES+=	${PROG}.sym
12
13# Follow the suit of Makefile.kern.inc; needed for the lfs64 union
14# accessors -- they don't actually dereference the resulting pointer,
15# just use it for type-checking.
16CWARNFLAGS.clang+=	-Wno-error=address-of-packed-member
17
18# XXX SHOULD NOT NEED TO DEFINE THESE!
19LIBCRT0=
20LIBCRTI=
21LIBC=
22LIBCRTBEGIN=
23LIBCRTEND=
24
25${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
26	${LD} -o ${.TARGET}.sym ${LINKFLAGS} ${OBJS} ${LIBSA} ${LIBKERN}
27	@${SIZE} ${.TARGET}.sym
28	${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}
29
30.include <bsd.prog.mk>
31