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 2026 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_kioxia.o \ 26 libnvme_log.o \ 27 libnvme_micron.o \ 28 libnvme_ns_info.o \ 29 libnvme_ns_mgmt.o \ 30 libnvme_ocp.o \ 31 libnvme_phison.o \ 32 libnvme_samsung.o \ 33 libnvme_sandisk.o \ 34 libnvme_solidigm.o \ 35 libnvme_vendor.o \ 36 libnvme_vuc.o \ 37 libnvme_wdc.o \ 38 nvme_feature.o \ 39 nvme_field.o \ 40 nvme_firmware.o \ 41 nvme_format.o \ 42 nvme_identify.o \ 43 nvme_log.o \ 44 nvme_nsmgmt.o \ 45 nvme_version.o \ 46 nvme_vuc.o 47 48include ../../Makefile.lib 49 50SRCDIR = ../common 51LIBS = $(DYNLIB) 52CSTD = $(CSTD_GNU99) 53CPPFLAGS += -I$(SRC)/common/nvme 54LDLIBS += -lc -ldevinfo -lnvpair 55 56objs/%.o pics/%.o: $(SRC)/common/nvme/%.c 57 $(COMPILE.c) -o $@ $< 58 $(POST_PROCESS_O) 59 60.KEEP_STATE: 61 62all: $(LIBS) 63 64include ../../Makefile.targ 65