Makefile.inc revision 259065
1# $FreeBSD: releng/10.0/sys/boot/arm/ixp425/Makefile.inc 251250 2013-06-02 11:44:23Z tijl $
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:tu}
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