Makefile.com (bf21cd9318e0a3a51b7f02c14a7c1b1aef2dc861) | Makefile.com (4c87aefe8930bd07275b8dd2e96ea5f24d93a52e) |
---|---|
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# | 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. |
|
15 | 16 |
16LIBRARY = libvmmapi.a | 17LIBRARY = libvmmapi.a |
17VERS = .1 18 | 18VERS = .1 19 |
19OBJECTS = vmmapi.o expand_number.o | 20OBJECTS = vmmapi.o expand_number.o |
20 21# include library definitions 22include ../../Makefile.lib 23 24# install this library in the root filesystem 25include ../../Makefile.rootfs 26 | 21 22# include library definitions 23include ../../Makefile.lib 24 25# install this library in the root filesystem 26include ../../Makefile.rootfs 27 |
27SRCDIR = ../common | 28SRCDIR = ../common |
28 | 29 |
29LIBS = $(DYNLIB) $(LINTLIB) | 30LIBS = $(DYNLIB) $(LINTLIB) |
30 | 31 |
31CPPFLAGS = -I$(COMPAT)/freebsd -I$(CONTRIB)/freebsd \ | 32CPPFLAGS = -I$(COMPAT)/freebsd -I$(CONTRIB)/freebsd \ |
32 $(CPPFLAGS.master) -I$(SRC)/uts/i86pc 33 | 33 $(CPPFLAGS.master) -I$(SRC)/uts/i86pc 34 |
35# not linted 36SMATCH=off 37 |
|
34$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 35 | 38$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 39 |
36LDLIBS += -lc | 40LDLIBS += -lc |
37 38.KEEP_STATE: 39 40all: $(LIBS) 41 42lint: lintcheck 43 44pics/%.o: $(CONTRIB)/freebsd/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 | 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 |