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