adding logger
This commit is contained in:
parent
6add75c64e
commit
3dd32d039c
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "RpiLedBars/libs/log.c"]
|
||||
path = RpiLedBars/libs/log.c
|
||||
url = https://github.com/rxi/log.c.git
|
@ -6,10 +6,11 @@ SRC := src
|
||||
OBJ := obj
|
||||
BIN := bin/pixled
|
||||
|
||||
# SOURCES := $(wildcard $(SRC)/*.c)
|
||||
SOURCES := $(shell find $(SRC) -type f -name "*.c")
|
||||
OBJECTS := $(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
|
||||
|
||||
|
||||
|
||||
all: $(BIN)
|
||||
|
||||
$(OBJ)/%.o: $(SRC)/%.c
|
||||
@ -20,5 +21,8 @@ $(BIN) : $(OBJECTS)
|
||||
if [ ! -d "$(dir $(BIN))" ]; then mkdir -p "$(dir $(BIN))"; fi
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
liblog.a: log.o
|
||||
ar $(ARFLAGS) $@ $^
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJ)
|
1
RpiLedBars/libs/log.c
Submodule
1
RpiLedBars/libs/log.c
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit f9ea34994bd58ed342d2245cd4110bb5c6790153
|
Loading…
Reference in New Issue
Block a user