1164010Smarcel# $FreeBSD$
2164010Smarcel
3164010Smarcel.include <bsd.own.mk>
4188895SruMK_SSP=		no
5164010Smarcel
6164010SmarcelLIB=		ia64
7164010SmarcelINTERNALLIB=
8164010Smarcel
9222798SmarcelSRCS=		autoload.c bootinfo.c copy.c devicename.c exec.c icache.c
10164010Smarcel
11164010SmarcelCFLAGS+=	-I${.CURDIR}/../../efi/include
12211680SimpCFLAGS+=	-I${.CURDIR}/../../efi/include/${MACHINE_CPUARCH}
13164010SmarcelCFLAGS+=	-I${.CURDIR}/../../..
14164010SmarcelCFLAGS+=	-I${.CURDIR}/../../../../lib/libstand
15164010Smarcel
16164010Smarcel.if ${MK_FORTH} != "no"
17164010SmarcelBOOT_FORTH=	yes
18164010SmarcelCFLAGS+=	-DBOOT_FORTH
19164010SmarcelCFLAGS+=	-I${.CURDIR}/../../ficl
20211680SimpCFLAGS+=	-I${.CURDIR}/../../ficl/${MACHINE_CPUARCH}
21164010Smarcel.endif
22164010Smarcel
23164010Smarcel.PATH: ${.CURDIR}/../../common
24164010Smarcel.include "${.CURDIR}/../../common/Makefile.inc"
25164010Smarcel
26164010SmarcelCFLAGS+=	-I${.CURDIR}/../../common
27164010Smarcel
28164010SmarcelFILES+=		loader.help
29164010SmarcelCLEANFILES+=	loader.help
30164010Smarcelloader.help: help.common
31164010Smarcel	cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk \
32164010Smarcel	    > ${.TARGET}
33164010Smarcel
34164010Smarcel.PATH: ${.CURDIR}/../../forth
35164010SmarcelFILES+=		loader.4th support.4th loader.conf
36222472SjulianFILES+=		screen.4th frames.4th
37222417SjulianFILES+=		beastie.4th brand.4th check-password.4th color.4th delay.4th
38242688SdteskeFILES+=		menu.4th menu-commands.4th menusets.4th shortcuts.4th version.4th
39164010Smarcel.if !exists(${DESTDIR}/boot/loader.rc)
40164010SmarcelFILES+=		loader.rc
41164010Smarcel.endif
42222417Sjulian.if !exists(${DESTDIR}/boot/menu.rc)
43222417SjulianFILES+=		menu.rc
44222417Sjulian.endif
45164010SmarcelFILESDIR_loader.conf= /boot/defaults
46164010Smarcel
47164010Smarcel.include <bsd.lib.mk>
48