2001-09-12 08:34:27 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
|
|
|
|
PROG= skiload
|
|
|
|
NOMAN=
|
|
|
|
NEWVERSWHAT= "ia64 SKI boot" ${MACHINE_ARCH}
|
2002-04-07 04:26:42 +00:00
|
|
|
BINDIR?= /boot
|
2003-11-09 06:53:37 +00:00
|
|
|
STRIP= # We must not strip skiload at install time.
|
2001-09-12 08:34:27 +00:00
|
|
|
|
2004-02-12 08:10:34 +00:00
|
|
|
SRCS= conf.c main.c start.S vers.c
|
2003-02-26 06:18:52 +00:00
|
|
|
|
|
|
|
.if !defined(NOFORTH)
|
2001-09-12 08:34:27 +00:00
|
|
|
# Enable BootForth
|
|
|
|
BOOT_FORTH= yes
|
|
|
|
CFLAGS+= -DBOOT_FORTH
|
2003-02-26 06:18:52 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/${MACHINE_ARCH}
|
2001-09-12 08:34:27 +00:00
|
|
|
LIBFICL= ${.OBJDIR}/../../ficl/libficl.a
|
|
|
|
.endif
|
|
|
|
|
2001-09-26 00:13:08 +00:00
|
|
|
LIBSKI= ${.OBJDIR}/../libski/libski.a
|
2001-09-12 08:34:27 +00:00
|
|
|
|
|
|
|
# Always add MI sources
|
|
|
|
.PATH: ${.CURDIR}/../../common
|
2004-02-12 08:10:34 +00:00
|
|
|
.include "${.CURDIR}/../../common/Makefile.inc"
|
2001-09-12 08:34:27 +00:00
|
|
|
|
2004-02-12 08:10:34 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../common
|
2001-09-12 08:34:27 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../libski
|
|
|
|
CFLAGS+= -DLOADER
|
|
|
|
|
2004-02-13 04:45:41 +00:00
|
|
|
LDFLAGS= -Wl,-T${.CURDIR}/ldscript.ia64
|
2001-09-12 08:34:27 +00:00
|
|
|
|
2004-02-13 04:45:41 +00:00
|
|
|
CLEANFILES= vers.c ${PROG}.help
|
2001-09-12 08:34:27 +00:00
|
|
|
|
2004-02-12 08:10:34 +00:00
|
|
|
vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
|
2001-09-12 08:34:27 +00:00
|
|
|
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
|
|
|
|
|
2004-02-12 08:10:34 +00:00
|
|
|
${PROG}.help: help.common
|
2001-09-12 08:34:27 +00:00
|
|
|
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk \
|
|
|
|
> ${.TARGET}
|
|
|
|
|
2004-02-12 08:10:34 +00:00
|
|
|
FILES= ${PROG}.help
|
2001-09-12 08:34:27 +00:00
|
|
|
|
2004-02-12 08:10:34 +00:00
|
|
|
DPADD= ${LIBFICL} ${LIBSKI} ${LIBSTAND}
|
|
|
|
LDADD= ${LIBFICL} ${LIBSKI} -lstand
|
2001-09-12 08:34:27 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|