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...
This commit is contained in:
Christopher Haster
2022-11-17 10:09:13 -06:00
parent bcc88f52f4
commit f73494151a

View File

@@ -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 \