blob: 84b06dc21e06e996960f356e4b3cac123145f9fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $FreeBSD$
NO_MAN=
.include <bsd.own.mk>
PROG= skiload
NEWVERSWHAT= "ia64 SKI boot" ${MACHINE_ARCH}
STRIP= # We must not strip skiload at install time.
SRCS= acpi_stub.c bootinfo.c conf.c copy.c delay.c devicename.c \
efi_stub.c elf_freebsd.c exit.c main.c pal_stub.S sal_stub.c \
skiconsole.c skifs.c ssc.c start.S time.c vers.c
CFLAGS+= -DLOADER
CFLAGS+= -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/../../..
CFLAGS+= -I${.CURDIR}/../../efi/include
CFLAGS+= -I${.CURDIR}/../../efi/include/${MACHINE_ARCH}
LDFLAGS= -Wl,-T${.CURDIR}/ldscript.ia64
.if ${MK_FORTH} != "no"
CFLAGS+= -DBOOT_FORTH
CFLAGS+= -I${.CURDIR}/../../ficl
CFLAGS+= -I${.CURDIR}/../../ficl/${MACHINE_ARCH}
LIBFICL= ${.OBJDIR}/../../ficl/libficl.a
BOOT_FORTH= yes
.endif
# Always add MI sources (needs BOOT_FORTH)
.PATH: ${.CURDIR}/../../common
CFLAGS+= -I${.CURDIR}/../../common
.include "${.CURDIR}/../../common/Makefile.inc"
DPADD= ${LIBFICL} ${LIBSTAND}
LDADD= ${LIBFICL} -lstand
CLEANFILES= vers.c ${PROG}.help
vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
${PROG}.help: help.common
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk \
> ${.TARGET}
FILES= ${PROG}.help
.include <bsd.prog.mk>
|