adding logger
This commit is contained in:
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
Submodule RpiLedBars/libs/log.c added at f9ea34994b
Reference in New Issue
Block a user