Makefile.inc revision 161199
1157873Simp# $FreeBSD: head/sys/boot/arm/at91/Makefile.inc 161199 2006-08-10 18:22:56Z imp $
2157873Simp
3157925Simp.if !target(__at91_boot_Makefile.inc__)
4161199Simp.PATH:	${.CURDIR}/../../../../libkern ${.CURDIR}/../../../../libkern/arm
5161199Simp
6157925Simp__at91_boot_Makefile.inc__:
7157925Simp
8157873SimpCFLAGS=-O2 -mcpu=arm9 -ffreestanding \
9157873Simp	-I${.CURDIR}/../libat91 \
10161199Simp	-I${.CURDIR}/../../../.. \
11161199Simp	-I${.CURDIR}/../../../../arm \
12161199Simp	-D_KERNEL \
13161199Simp	-Wall -Waggregate-return  \
14161199Simp	-Wnested-externs \
15161199Simp	-Wpointer-arith -Wshadow -Wwrite-strings \
16157873Simp	-Werror
17161199Simp# -Wmissing-prototypes
18161199Simp# -Wmissing-declarations 
19161199Simp# -Wstrict-prototypes 
20157873Simp
21157925Simp#CFLAGS+=-DBOOT_TSC
22157925SimpCFLAGS+=-DBOOT_KB9202
23157873Simp
24157873SimpLIBAT91=${.OBJDIR}/../libat91/libat91.a
25157873Simp
26161199SimpLD ?= ld
27161199SimpOBJCOPY ?= objcopy
28161199Simp
29157873Simp.if defined(P)
30157873Simp${P}:	${P}.out
31161199Simp	${OBJCOPY} -S -O binary ${P}.out ${.TARGET}
32161199Simp	@set -- `ls -l ${.TARGET}`; x=$$((12288-$$5)); \
33157925Simp	    echo "$$x bytes available"; test $$x -ge 0
34157873Simp
35157873Simp${P}.out: ${OBJS}
36161199Simp	${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91}
37157873Simp
38157873SimpCLEANFILES+= ${P} ${P}.out
39157873Simp.endif
40157925Simp
41157925Simp.if defined(WITH_TAG_LIST)
42157925SimpMK_TAG_LIST:=yes
43157925Simp.else
44157925SimpMK_TAG_LIST:=no
45157925Simp.endif
46157925Simp
47161199Simp.if defined(WITHOUT_FPGA)
48161199SimpMK_FPGA:=no
49161199Simp.else
50161199SimpMK_FPGA:=yes
51157925Simp.endif
52161199Simp
53161199Simp.endif
54