From: Manfred Steiner Date: Fri, 28 Feb 2025 12:00:29 +0000 (+0100) Subject: bugfix Makefile crumb128 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;p=project-template.git bugfix Makefile crumb128 --- diff --git a/vscode-avr-c-cpp/crumb128-1/Makefile b/vscode-avr-c-cpp/crumb128-1/Makefile index 73884a5..fc9def3 100644 --- a/vscode-avr-c-cpp/crumb128-1/Makefile +++ b/vscode-avr-c-cpp/crumb128-1/Makefile @@ -2,8 +2,8 @@ NAME=crumb128-1_at90can128 DEVICE=at90can128 AVRDUDE_DEVICE=c128 -#CPU_FREQUENCY=14745600 -CPU_FREQUENCY=16000000 +#CPU_FREQUENCE=14745600 +CPU_FREQUENCE=16000000 BAUDRATE=115200 # -------------------------------------------------------------------------------- @@ -16,7 +16,7 @@ $(shell mkdir -p sim/build >/dev/null) SRC= $(wildcard src/*.c src/*.cpp src/*/*.c src/*/*.cpp) HDR= $(wildcard src/*.h src/*.hpp src/*/*.h src/*/*.hpp) -MAINSRC= $(wildcard src/main.c src/main.cpp) +MAINSRC= $(wildcard src/main.c src/main.cpp) OBJ_CPP = $(SRC:src/%.cpp=build/%.o) OBJ = $(OBJ_CPP:src/%.c=build/%.o) OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o) @@ -72,11 +72,11 @@ dist/%.s: dist/%.elf DATE_USED= ifneq ($(shell cat $(MAINSRC) | grep __DATE__),) DATE_USED=true -endif +endif TIME_USED= ifneq ($(shell cat $(MAINSRC) | grep __TIME__),) TIME_USED=true -endif +endif ifeq (true, $(filter true, $(DATE_USED) $(TIME_USED))) build/main.o: $(MAIN_SRC) $(SRC) $(HDR)