]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/kboot/Makefile
sqlite3: Vendor import of sqlite3 3.40.1
[FreeBSD/FreeBSD.git] / stand / kboot / Makefile
1 # $FreeBSD$
2
3 LOADER_DISK_SUPPORT?=   yes
4 LOADER_CD9660_SUPPORT?= yes
5 LOADER_MSDOS_SUPPORT?=  no
6 LOADER_EXT2FS_SUPPORT?= yes
7 LOADER_UFS_SUPPORT?=    yes
8 LOADER_NET_SUPPORT?=    no
9 LOADER_NFS_SUPPORT?=    no
10 LOADER_TFTP_SUPPORT?=   no
11 LOADER_GZIP_SUPPORT?=   no
12 LOADER_BZIP2_SUPPORT?=  no
13
14 .include <bsd.init.mk>
15
16 PROG=           loader.kboot
17 NEWVERSWHAT=    "kboot loader" ${MACHINE_ARCH}
18 INSTALLFLAGS=   -b
19
20 # Architecture-specific loader code
21 SRCS=   \
22                 conf.c \
23                 crt1.c \
24                 gfx_fb_stub.c \
25                 host_syscalls.c \
26                 hostcons.c \
27                 hostdisk.c \
28                 hostfs.c \
29                 init.c \
30                 kbootfdt.c \
31                 main.c \
32                 termios.c \
33                 util.c \
34                 vers.c
35
36 CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken
37
38 .include        "${BOOTSRC}/fdt.mk"
39
40 # Note: Since we're producing a userland binary, we key off of MACHINE_ARCH
41 # instead of the more normal MACHINE since the changes between different flavors
42 # of MACHINE_ARCH are large enough in Linux that it's easier that way.
43 .PATH:  ${.CURDIR}/arch/${MACHINE_ARCH}
44 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
45
46 # Always add MI sources
47 .include        "${BOOTSRC}/loader.mk"
48 .PATH:          ${SYSDIR}/libkern
49 CFLAGS+=        -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
50
51 CFLAGS+=        -Wall
52
53 DPADD=          ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
54 LDADD=          ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
55
56 .include <bsd.prog.mk>