From f73494151a14912853445114efe21d6f6debdff7 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Thu, 17 Nov 2022 10:09:13 -0600 Subject: [PATCH] Changed default build target lfs.a -> liblfs.a This is the name expected if you are actually linking against littlefs. The use as a default build rule is mostly for linting. Most uses of littlefs likely compile directly with the sources (it is only several K of code), or use their own build system, and the previous name would have made linking a bit of a challenge. Still, this might cause some breakage for someone... --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2e515a42..88156a96 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ BUILDDIR ?= . ifneq ($(wildcard test.c main.c),) TARGET ?= $(BUILDDIR)/lfs else -TARGET ?= $(BUILDDIR)/lfs.a +TARGET ?= $(BUILDDIR)/liblfs.a endif @@ -290,7 +290,7 @@ summary sizes: $(BUILDDIR)/lfs.csv $(BUILDDIR)/lfs: $(OBJ) $(CC) $(CFLAGS) $^ $(LFLAGS) -o $@ -$(BUILDDIR)/lfs.a: $(OBJ) +$(BUILDDIR)/liblfs.a: $(OBJ) $(AR) rcs $@ $^ $(BUILDDIR)/lfs.code.csv: $(OBJ) @@ -359,7 +359,7 @@ $(BUILDDIR)/%.b.c: %.c $(BENCHES) .PHONY: clean clean: rm -f $(BUILDDIR)/lfs - rm -f $(BUILDDIR)/lfs.a + rm -f $(BUILDDIR)/liblfs.a $(strip rm -f \ $(BUILDDIR)/lfs.csv \ $(BUILDDIR)/lfs.code.csv \