Makefile.cats.inc revision 1.15
1#	$NetBSD: Makefile.cats.inc,v 1.15 2003/10/04 15:43:05 chris Exp $
2
3CPPFLAGS+=	-D${MACHINE}
4
5.if (${OBJECT_FMT} == "ELF")
6
7.if defined(ABLEELF) && (${ABLEELF} == "1")
8# use a standard ELF format, adjusted to align areas
9LINKFLAGS=	-T ${THISARM}/conf/ldscript.elf
10
11.else
12# Need to convert the kernel from ELF to a.out so that the firmware
13# can load it.
14
15LINKFLAGS=	-T ${THISARM}/conf/kern.ldscript
16
17SYSTEM_LD_TAIL_EXTRA+=; \
18	echo "${DBSYM} $@ || true"; \
19	${DBSYM} $@ || true; \
20	echo \
21	 "${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout"; \
22	${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout
23.endif
24.endif
25