From 0a74126b8b608aea2ca1d6683abf94e78127205d Mon Sep 17 00:00:00 2001 From: Manfred Steiner Date: Thu, 7 Nov 2024 18:04:01 +0100 Subject: [PATCH] =?utf8?q?Projektvorlagen=20VSCode/AVR/Level-1:=20Makefile?= =?utf8?q?s=20ge=C3=A4ndert=20(Fix=20UART=20FDEV=5FSETUP=5FSTREAM=20Proble?= =?utf8?q?m=20bei=20avr-g++)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- vscode-avr-c-cpp/arduino-nano-1/Makefile | 5 +++-- vscode-avr-c-cpp/nano-1284-1/Makefile | 5 +++-- vscode-avr-c-cpp/nano-644-1/Makefile | 5 +++-- vscode-avr-c-cpp/sure-1/Makefile | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/vscode-avr-c-cpp/arduino-nano-1/Makefile b/vscode-avr-c-cpp/arduino-nano-1/Makefile index 7e1fa9d..3a56c18 100644 --- a/vscode-avr-c-cpp/arduino-nano-1/Makefile +++ b/vscode-avr-c-cpp/arduino-nano-1/Makefile @@ -21,7 +21,8 @@ OBJ = $(OBJ_CPP:src/%.c=build/%.o) OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o) OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o) -CC= avr-g++ +CCP= avr-g++ +CC= avr-gcc CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=$(CPU_FREQUENCE) -c CFLAGS += @@ -90,7 +91,7 @@ build/%.o: src/%.c build/%.o: src/%.cpp @mkdir -p $(dir $@) - $(CC) $(CFLAGS) -o $@ $< + $(CCP) $(CFLAGS) -o $@ $< # -------------------------------------------------------------------------------- # simulation/debugging with gdb or simuc diff --git a/vscode-avr-c-cpp/nano-1284-1/Makefile b/vscode-avr-c-cpp/nano-1284-1/Makefile index e95febd..8a81127 100644 --- a/vscode-avr-c-cpp/nano-1284-1/Makefile +++ b/vscode-avr-c-cpp/nano-1284-1/Makefile @@ -21,7 +21,8 @@ OBJ = $(OBJ_CPP:src/%.c=build/%.o) OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o) OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o) -CC= avr-g++ +CCP= avr-g++ +CC= avr-gcc CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=$(CPU_FREQUENCE) -c CFLAGS += @@ -90,7 +91,7 @@ build/%.o: src/%.c build/%.o: src/%.cpp @mkdir -p $(dir $@) - $(CC) $(CFLAGS) -o $@ $< + $(CCP) $(CFLAGS) -o $@ $< # -------------------------------------------------------------------------------- # simulation/debugging with gdb or simuc diff --git a/vscode-avr-c-cpp/nano-644-1/Makefile b/vscode-avr-c-cpp/nano-644-1/Makefile index 03912d7..a93c8d0 100644 --- a/vscode-avr-c-cpp/nano-644-1/Makefile +++ b/vscode-avr-c-cpp/nano-644-1/Makefile @@ -21,7 +21,8 @@ OBJ = $(OBJ_CPP:src/%.c=build/%.o) OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o) OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o) -CC= avr-g++ +CCP= avr-g++ +CC= avr-gcc CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=$(CPU_FREQUENCE) -c CFLAGS += @@ -90,7 +91,7 @@ build/%.o: src/%.c build/%.o: src/%.cpp @mkdir -p $(dir $@) - $(CC) $(CFLAGS) -o $@ $< + $(CCP) $(CFLAGS) -o $@ $< # -------------------------------------------------------------------------------- # simulation/debugging with gdb or simuc diff --git a/vscode-avr-c-cpp/sure-1/Makefile b/vscode-avr-c-cpp/sure-1/Makefile index cbde53e..fc7cfc5 100644 --- a/vscode-avr-c-cpp/sure-1/Makefile +++ b/vscode-avr-c-cpp/sure-1/Makefile @@ -21,7 +21,8 @@ OBJ = $(OBJ_CPP:src/%.c=build/%.o) OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o) OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o) -CC= avr-g++ +CCP= avr-g++ +CC= avr-gcc CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=$(CPU_FREQUENCE) -c CFLAGS += @@ -90,7 +91,7 @@ build/%.o: src/%.c build/%.o: src/%.cpp @mkdir -p $(dir $@) - $(CC) $(CFLAGS) -o $@ $< + $(CCP) $(CFLAGS) -o $@ $< # -------------------------------------------------------------------------------- # simulation/debugging with gdb or simuc -- 2.39.5