xref: /freebsd/usr.sbin/bhyve/Makefile (revision 6f63e88c0166ed3e5f2805a9e667c7d24d304cf1)
1#
2# $FreeBSD$
3#
4
5.include <src.opts.mk>
6CFLAGS+=-I${SRCTOP}/sys
7.PATH:  ${SRCTOP}/sys/cam/ctl
8
9PROG=	bhyve
10PACKAGE=	bhyve
11
12MAN=	bhyve.8
13
14BHYVE_SYSDIR?=${SRCTOP}
15
16SRCS=	\
17	atkbdc.c		\
18	acpi.c			\
19	audio.c			\
20	bhyvegc.c		\
21	bhyverun.c		\
22	block_if.c		\
23	bootrom.c		\
24	console.c		\
25	consport.c		\
26	ctl_util.c		\
27	ctl_scsi_all.c		\
28	dbgport.c		\
29	fwctl.c			\
30	gdb.c			\
31	hda_codec.c		\
32	inout.c			\
33	ioapic.c		\
34	mem.c			\
35	mevent.c		\
36	mptbl.c			\
37	net_backends.c		\
38	net_utils.c		\
39	pci_ahci.c		\
40	pci_e82545.c		\
41	pci_emul.c		\
42	pci_hda.c		\
43	pci_fbuf.c		\
44	pci_hostbridge.c	\
45	pci_irq.c		\
46	pci_lpc.c		\
47	pci_nvme.c		\
48	pci_passthru.c		\
49	pci_virtio_block.c	\
50	pci_virtio_console.c	\
51	pci_virtio_net.c	\
52	pci_virtio_rnd.c	\
53	pci_virtio_scsi.c	\
54	pci_uart.c		\
55	pci_xhci.c		\
56	pm.c			\
57	post.c			\
58	ps2kbd.c		\
59	ps2mouse.c		\
60	rfb.c			\
61	rtc.c			\
62	smbiostbl.c		\
63	sockstream.c		\
64	task_switch.c		\
65	uart_emul.c		\
66	usb_emul.c		\
67	usb_mouse.c		\
68	virtio.c		\
69	vga.c			\
70	vmgenc.c		\
71	xmsr.c			\
72	spinup_ap.c		\
73	iov.c
74
75.PATH:  ${BHYVE_SYSDIR}/sys/amd64/vmm
76SRCS+=	vmm_instruction_emul.c
77
78LIBADD=	vmmapi md pthread z util sbuf cam
79
80.if ${MK_INET_SUPPORT} != "no"
81CFLAGS+=-DINET
82.endif
83.if ${MK_INET6_SUPPORT} != "no"
84CFLAGS+=-DINET6
85.endif
86.if ${MK_OPENSSL} == "no"
87CFLAGS+=-DNO_OPENSSL
88.else
89LIBADD+=	crypto
90.endif
91
92CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/e1000
93CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/mii
94CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/usb/controller
95
96.ifdef GDB_LOG
97CFLAGS+=-DGDB_LOG
98.endif
99
100WARNS?=	2
101
102.include <bsd.prog.mk>
103