xref: /illumos-gate/usr/src/lib/libvmmapi/Makefile.com (revision d48be21240dfd051b689384ce2b23479d757f2d8)
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/intel
34
35SMOFF += all_func_returns
36
37LDLIBS		+= -lc
38
39.KEEP_STATE:
40
41all: $(LIBS)
42
43pics/%.o: $(CONTRIB)/bhyve/lib/libutil/%.c
44	$(COMPILE.c) -o $@ $<
45	$(POST_PROCESS_O)
46
47pics/%.o: ../common/%.c
48	$(COMPILE.c) -o $@ $<
49	$(POST_PROCESS_O)
50
51# include library targets
52include ../../Makefile.targ
53