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) $(LINTLIB) 31 32CPPFLAGS = -I$(COMPAT)/freebsd -I$(CONTRIB)/freebsd \ 33 $(CPPFLAGS.master) -I$(SRC)/uts/i86pc 34 35# not linted 36SMATCH=off 37 38$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 39 40LDLIBS += -lc 41 42.KEEP_STATE: 43 44all: $(LIBS) 45 46lint: lintcheck 47 48pics/%.o: $(CONTRIB)/freebsd/lib/libutil/%.c 49 $(COMPILE.c) -o $@ $< 50 $(POST_PROCESS_O) 51 52pics/%.o: ../common/%.c 53 $(COMPILE.c) -o $@ $< 54 $(POST_PROCESS_O) 55 56# include library targets 57include ../../Makefile.targ 58