xref: /illumos-gate/usr/src/lib/libnvme/Makefile.com (revision 9b9d39d2a32ff806d2431dbcc50968ef1e6d46b2)
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_vendor.o \
29		libnvme_vuc.o \
30		libnvme_wdc.o \
31		nvme_feature.o \
32		nvme_field.o \
33		nvme_firmware.o \
34		nvme_format.o \
35		nvme_identify.o \
36		nvme_log.o \
37		nvme_version.o \
38		nvme_vuc.o
39
40include ../../Makefile.lib
41
42SRCDIR =	../common
43LIBS =		$(DYNLIB)
44CSTD =		$(CSTD_GNU99)
45CPPFLAGS +=	-I$(SRC)/common/nvme
46LDLIBS +=	-lc -ldevinfo -lnvpair
47
48objs/%.o pics/%.o: $(SRC)/common/nvme/%.c
49	$(COMPILE.c) -o $@ $<
50	$(POST_PROCESS_O)
51
52.KEEP_STATE:
53
54all: $(LIBS)
55
56include ../../Makefile.targ
57