]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/sys/boot/arm/at91/Makefile.inc
Clone Kip's Xen on stable/6 tree so that I can work on improving FreeBSD/amd64
[FreeBSD/FreeBSD.git] / 6 / sys / boot / arm / at91 / Makefile.inc
1 # $FreeBSD$
2
3 .if !target(__at91_boot_Makefile.inc__)
4 .PATH:  ${.CURDIR}/../../../../libkern ${.CURDIR}/../../../../libkern/arm
5
6 __at91_boot_Makefile.inc__:
7
8 CFLAGS=-O2 -mcpu=arm9 -ffreestanding \
9         -I${.CURDIR}/../libat91 \
10         -I${.CURDIR}/../../../.. \
11         -I${.CURDIR}/../../../../arm \
12         -D_KERNEL \
13         -Wall -Waggregate-return  \
14         -Wnested-externs \
15         -Wpointer-arith -Wshadow -Wwrite-strings \
16         -Werror
17 # -Wmissing-prototypes
18 # -Wmissing-declarations 
19 # -Wstrict-prototypes 
20
21 #CFLAGS+=-DBOOT_TSC
22 CFLAGS+=-DBOOT_KB9202
23
24 LIBAT91=${.OBJDIR}/../libat91/libat91.a
25
26 LD ?= ld
27 OBJCOPY ?= objcopy
28
29 .if defined(P)
30 ${P}:   ${P}.out
31         ${OBJCOPY} -S -O binary ${P}.out ${.TARGET}
32         @set -- `ls -l ${.TARGET}`; x=$$((12288-$$5)); \
33             echo "$$x bytes available"; test $$x -ge 0
34
35 ${P}.out: ${OBJS}
36         ${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91}
37
38 CLEANFILES+= ${P} ${P}.out
39 .endif
40
41 .if defined(WITH_TAG_LIST)
42 MK_TAG_LIST:=yes
43 .else
44 MK_TAG_LIST:=no
45 .endif
46
47 .if defined(WITHOUT_FPGA)
48 MK_FPGA:=no
49 .else
50 MK_FPGA:=yes
51 .endif
52
53 .endif