xref: /freebsd/usr.sbin/bhyve/Makefile (revision 6683132d54bd6d589889e43dabdc53d35e38a028)
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_utils.c		\
38	pci_ahci.c		\
39	pci_e82545.c		\
40	pci_emul.c		\
41	pci_hda.c		\
42	pci_fbuf.c		\
43	pci_hostbridge.c	\
44	pci_irq.c		\
45	pci_lpc.c		\
46	pci_nvme.c		\
47	pci_passthru.c		\
48	pci_virtio_block.c	\
49	pci_virtio_console.c	\
50	pci_virtio_net.c	\
51	pci_virtio_rnd.c	\
52	pci_virtio_scsi.c	\
53	pci_uart.c		\
54	pci_xhci.c		\
55	pm.c			\
56	post.c			\
57	ps2kbd.c		\
58	ps2mouse.c		\
59	rfb.c			\
60	rtc.c			\
61	smbiostbl.c		\
62	sockstream.c		\
63	task_switch.c		\
64	uart_emul.c		\
65	usb_emul.c		\
66	usb_mouse.c		\
67	virtio.c		\
68	vga.c			\
69	xmsr.c			\
70	spinup_ap.c		\
71	iov.c
72
73.PATH:  ${BHYVE_SYSDIR}/sys/amd64/vmm
74SRCS+=	vmm_instruction_emul.c
75
76LIBADD=	vmmapi md pthread z util sbuf cam
77
78.if ${MK_INET_SUPPORT} != "no"
79CFLAGS+=-DINET
80.endif
81.if ${MK_INET6_SUPPORT} != "no"
82CFLAGS+=-DINET6
83.endif
84.if ${MK_OPENSSL} == "no"
85CFLAGS+=-DNO_OPENSSL
86.else
87LIBADD+=	crypto
88.endif
89
90CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/e1000
91CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/mii
92CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/usb/controller
93
94.ifdef GDB_LOG
95CFLAGS+=-DGDB_LOG
96.endif
97
98WARNS?=	2
99
100.include <bsd.prog.mk>
101