Sfoglia il codice sorgente

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...
Christopher Haster 3 anni fa
parent
commit
f73494151a
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      Makefile

+ 3 - 3
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 \