xref: /illumos-gate/usr/src/lib/libvmm/Makefile.com (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2018 Joyent, Inc.
14#
15
16LIBRARY =	libvmm.a
17VERS =		.1
18OBJECTS =	libvmm.o list.o
19
20SRCDIR =	.
21
22include ../../Makefile.lib
23include ../../Makefile.rootfs
24
25LIBS		= $(DYNLIB)
26
27# The FreeBSD compat and contrib headers need to be first in the search
28# path, hence we can't just append them to CPPFLAGS. So we assign CPPFLAGS
29# directly and pull in CPPFLAGS.master at the appropriate place.
30CPPFLAGS =	-I$(COMPAT)/bhyve -I$(CONTRIB)/bhyve \
31		-I$(COMPAT)/bhyve/amd64 -I$(CONTRIB)/bhyve/amd64 \
32		$(CPPFLAGS.master) -I$(SRC)/uts/intel
33
34LDLIBS +=	-lc -lvmmapi
35
36.KEEP_STATE:
37
38all: $(LIBS)
39
40pics/%.o: $(SRC)/common/list/%.c
41	$(COMPILE.c) -o $@ $<
42	$(POST_PROCESS_O)
43
44pics/%.o: ../%.c
45	$(COMPILE.c) -o $@ $<
46	$(POST_PROCESS_O)
47
48# include library targets
49include ../../Makefile.targ
50