mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-11-16 12:34:34 +00:00
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:
6
Makefile
6
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 \
|
||||
|
||||
Reference in New Issue
Block a user