Makefile.inc revision 183651
1# $FreeBSD: head/sys/boot/arm/ixp425/Makefile.inc 183651 2008-10-06 19:38:10Z jhay $
2
3.if !target(__ixp425_boot_Makefile.inc__)
4.PATH:	${.CURDIR}/../../../../libkern ${.CURDIR}/../../../../libkern/arm
5
6__ixp425_boot_Makefile.inc__:
7
8# Both Avila and Pronghorn Metro are supported by ixp425
9BOOT_FLAVOR=ixp425
10
11CFLAGS+=-Os -ffreestanding \
12	-I${.CURDIR}/../../../.. \
13	-I${.CURDIR}/../../../../arm \
14	-DCPU_XSCALE_IXP425 \
15	-Wall -Waggregate-return  \
16	-Werror \
17	-Wnested-externs \
18	-Wpointer-arith -Wshadow -Wwrite-strings \
19	-Wmissing-prototypes \
20	-Wmissing-declarations 
21
22# -Wstrict-prototypes 
23
24CFLAGS+=-DBOOT_${BOOT_FLAVOR:U}
25
26LD ?= ld
27OBJCOPY ?= objcopy
28
29.if defined(P)
30${P}: ${OBJS}
31	${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS}
32
33CLEANFILES+= ${P}
34.endif
35
36.if defined(WITH_TAG_LIST)
37MK_TAG_LIST:=yes
38.else
39MK_TAG_LIST:=no
40.endif
41
42.endif
43