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
|
OBJ := obj
|
||||||
BIN := bin/pixled
|
BIN := bin/pixled
|
||||||
|
|
||||||
# SOURCES := $(wildcard $(SRC)/*.c)
|
|
||||||
SOURCES := $(shell find $(SRC) -type f -name "*.c")
|
SOURCES := $(shell find $(SRC) -type f -name "*.c")
|
||||||
OBJECTS := $(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
|
OBJECTS := $(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
$(OBJ)/%.o: $(SRC)/%.c
|
$(OBJ)/%.o: $(SRC)/%.c
|
||||||
@ -20,5 +21,8 @@ $(BIN) : $(OBJECTS)
|
|||||||
if [ ! -d "$(dir $(BIN))" ]; then mkdir -p "$(dir $(BIN))"; fi
|
if [ ! -d "$(dir $(BIN))" ]; then mkdir -p "$(dir $(BIN))"; fi
|
||||||
$(CC) -o $@ $^ $(LDFLAGS)
|
$(CC) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
liblog.a: log.o
|
||||||
|
ar $(ARFLAGS) $@ $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OBJ)
|
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