Makefile.cats.inc revision 1.13
1#	$NetBSD: Makefile.cats.inc,v 1.13 2003/01/03 02:34:49 thorpej Exp $
2
3CPPFLAGS+=	-D${MACHINE}
4
5.if (${OBJECT_FMT} == "ELF")
6# Need to convert the kernel from ELF to a.out so that the firmware
7# can load it.
8
9LINKFLAGS=	-T ${THISARM}/conf/kern.ldscript
10
11SYSTEM_LD_TAIL_EXTRA+=; \
12	echo "${DBSYM} $@ || true"; \
13	${DBSYM} $@ || true; \
14	echo \
15	 "${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs $@ $@.aout"; \
16	${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs $@ $@.aout
17.endif
18