clean up makefile
This commit is contained in:
parent
cbeced8550
commit
2fc8b382ef
6
Makefile
6
Makefile
|
@ -93,7 +93,7 @@ OBJDIRS := $(SRC_FILES:%=./bin/%)
|
|||
build: $(OUT)$(NAME)
|
||||
|
||||
$(OBJDIRS):
|
||||
mkdir -p $(shell dirname $@)
|
||||
@mkdir -p $(shell dirname $@)
|
||||
$(OUT)%.cpp.o: %.cpp
|
||||
$(CXX) $(CXXFLAGS) -c $(INC_DIRS) -o $@ $<
|
||||
$(OUT)%.c.o: %.c
|
||||
|
@ -111,11 +111,11 @@ test:
|
|||
$(OUT)test
|
||||
|
||||
protobufg:
|
||||
mkdir -p protobuf/gateway
|
||||
@mkdir -p protobuf/gateway
|
||||
python3 external/nanopb/generator/nanopb_generator.py gateway/message.proto -D protobuf
|
||||
|
||||
bin:
|
||||
mkdir bin
|
||||
@mkdir bin
|
||||
|
||||
flash: $(OUT)$(NAME)
|
||||
avrdude -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:$(OUT)$(NAME).hex:i
|
||||
|
|
Loading…
Reference in New Issue
Block a user