8 SHLIB_NAME= userboot.so
21 SRCS+= elf32_freebsd.c
22 SRCS+= elf64_freebsd.c
25 SRCS+= userboot_cons.c
26 SRCS+= userboot_disk.c
30 CFLAGS+= -I${.CURDIR}/..
31 CFLAGS+= -I${.CURDIR}/../../common
32 CFLAGS+= -I${.CURDIR}/../../..
33 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
34 CFLAGS+= -ffreestanding -I.
36 LDFLAGS+= -nostdlib -Wl,-Bsymbolic
38 NEWVERSWHAT= "User boot" ${MACHINE_CPUARCH}
40 vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
41 sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
45 .if ${MK_FORTH} != "no"
47 CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/i386
48 CFLAGS+= -DBF_DICTSIZE=15000
49 LIBFICL= ${.OBJDIR}/../ficl/libficl.a
50 LIBSTAND= ${.OBJDIR}/../libstand/libstand.a
53 # Always add MI sources
54 .PATH: ${.CURDIR}/../../common
55 .include "${.CURDIR}/../../common/Makefile.inc"
56 CFLAGS+= -I${.CURDIR}/../../common
58 DPADD= ${LIBFICL} ${LIBSTAND}
59 LDADD= ${LIBFICL} ${LIBSTAND}