From ecf1d7d4d4162f88523892520e99db2e3252d0ad Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 10 Nov 2015 16:23:49 -0700 Subject: [PATCH] build: use $(LIB) as library target name lib/memory was already using this pattern; extend it to lib/util and lib/nvme. Change-Id: I84a633d7805522fc94d8fc11ad5486ce552702e5 Signed-off-by: Daniel Verkamp --- lib/nvme/Makefile | 8 +++++--- lib/util/Makefile | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/nvme/Makefile b/lib/nvme/Makefile index 2eac06cf13..96aba52d46 100644 --- a/lib/nvme/Makefile +++ b/lib/nvme/Makefile @@ -38,12 +38,14 @@ CFLAGS += $(DPDK_INC) -include $(CONFIG_NVME_IMPL) C_SRCS = nvme_ctrlr_cmd.c nvme_ctrlr.c nvme_ns_cmd.c nvme_ns.c nvme_qpair.c nvme.c -all : libspdk_nvme.a +LIB = libspdk_nvme.a + +all : $(LIB) clean : - $(Q)rm -f libspdk_nvme.a $(OBJS) *.d + $(Q)rm -f $(LIB) $(OBJS) *.d -libspdk_nvme.a : $(OBJS) +$(LIB) : $(OBJS) $(LIB_C) include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk diff --git a/lib/util/Makefile b/lib/util/Makefile index afdacee3b8..9b8641a2e3 100644 --- a/lib/util/Makefile +++ b/lib/util/Makefile @@ -38,12 +38,14 @@ CFLAGS += $(DPDK_INC) C_SRCS = file.c string.c pci.c -all : libspdk_util.a +LIB = libspdk_util.a + +all : $(LIB) clean : - $(Q)rm -f libspdk_util.a $(OBJS) *.d + $(Q)rm -f $(LIB) $(OBJS) *.d -libspdk_util.a : $(OBJS) +$(LIB) : $(OBJS) $(LIB_C) include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk