xref: /illumos-gate/usr/src/lib/libvmmapi/Makefile.com (revision 78801af7286cd73dbc996d470f789e75993cf15d)
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 2013 Pluribus Networks Inc.
14#
15# Copyright 2019 Joyent, Inc.
16
17LIBRARY	= libvmmapi.a
18VERS		= .1
19
20OBJECTS	= vmmapi.o expand_number.o
21
22# include library definitions
23include ../../Makefile.lib
24
25# install this library in the root filesystem
26include ../../Makefile.rootfs
27
28SRCDIR		= ../common
29
30LIBS		= $(DYNLIB)
31
32CPPFLAGS	= -I$(COMPAT)/bhyve -I$(CONTRIB)/bhyve \
33	$(CPPFLAGS.master) -I$(SRC)/uts/i86pc
34
35# not linted
36SMATCH=off
37
38LDLIBS		+= -lc
39
40.KEEP_STATE:
41
42all: $(LIBS)
43
44pics/%.o: $(CONTRIB)/bhyve/lib/libutil/%.c
45	$(COMPILE.c) -o $@ $<
46	$(POST_PROCESS_O)
47
48pics/%.o: ../common/%.c
49	$(COMPILE.c) -o $@ $<
50	$(POST_PROCESS_O)
51
52# include library targets
53include ../../Makefile.targ
54