xref: /illumos-gate/usr/src/lib/libnvme/Makefile.com (revision 7655c6d53c36750b508636f48c73a2de57754e5a)
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 2024 Oxide Computer Company
14#
15
16LIBRARY =	libnvme.a
17VERS =		.1
18OBJECTS =	libnvme.o \
19		libnvme_ctrl_info.o \
20		libnvme_error.o \
21		libnvme_feature.o \
22		libnvme_format.o \
23		libnvme_fw.o \
24		libnvme_identify.o \
25		libnvme_log.o \
26		libnvme_micron.o \
27		libnvme_ns_info.o \
28		libnvme_ocp.o \
29		libnvme_solidigm.o \
30		libnvme_vendor.o \
31		libnvme_vuc.o \
32		libnvme_wdc.o \
33		nvme_feature.o \
34		nvme_field.o \
35		nvme_firmware.o \
36		nvme_format.o \
37		nvme_identify.o \
38		nvme_log.o \
39		nvme_version.o \
40		nvme_vuc.o
41
42include ../../Makefile.lib
43
44SRCDIR =	../common
45LIBS =		$(DYNLIB)
46CSTD =		$(CSTD_GNU99)
47CPPFLAGS +=	-I$(SRC)/common/nvme
48LDLIBS +=	-lc -ldevinfo -lnvpair
49
50objs/%.o pics/%.o: $(SRC)/common/nvme/%.c
51	$(COMPILE.c) -o $@ $<
52	$(POST_PROCESS_O)
53
54.KEEP_STATE:
55
56all: $(LIBS)
57
58include ../../Makefile.targ
59