fix some make targets

This commit is contained in:
Jeff Epler 2022-01-11 08:41:38 -06:00
parent fbb3c67bd6
commit 28868b1132
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -6,7 +6,7 @@ FIRMWARE = firmware/cwwvb.ino.elf
all: decoder $(FIRMWARE) run-tests
decoder: decoder.cpp Makefile decoder.h
g++ -Wall -g -Og -o $@ $< -DMAIN
$(CXX) -Wall -g -Og -o $@ $< -DMAIN
.PHONY: arduino
arduino: $(FIRMWARE)
@ -21,11 +21,11 @@ flash: $(FIRMWARE)
.PHONY: clean
clean:
rm -f *.o decoder firmware
rm -rf *.o decoder firmware
.PHONY: run-tests
run-tests: tests
./tests
tests: decoder.cpp decoder.h Makefile tests.cpp
g++ -Wall -g -Og -o $@ $(filter %.cpp, $^)
$(CXX) -Wall -g -Og -o $@ $(filter %.cpp, $^)