From 7e97ea3da368023d62b76a5769d3c72bacb35a48 Mon Sep 17 00:00:00 2001 From: Leon Krieg Date: Mon, 16 Sep 2024 01:04:44 +0200 Subject: [PATCH] Update planned FREQ, ARCH, MCU and fix superfluous whitespace --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5a62825..f0ebac8 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,11 @@ ELFFILE := $(BINDIR)/core.elf LOGFILE := $(BINDIR)/core.log VERBOSE := false +#ARCH := m1284p ARCH := m32 -#FREQ := 7372800UL +#FREQ := 18432000UL FREQ := 8000000UL +#MCU := atmega1284p MCU := atmega32a ASP := usbasp CC := avr-gcc @@ -34,14 +36,14 @@ CPPFLAGS := -DF_CPU=$(FREQ) -I$(SRCDIR) CFLAGS := -mmcu=$(MCU) -Os -std=c99 -Wall -Wextra -Werror OCFLAGS := -j .text -j .data -O ihex LDFLAGS := -mmcu=$(MCU) -Wl,-u,vfprintf -lprintf_flt -LDLIBS := +LDLIBS := -lm # ============================================================================== # TARGET FILE LISTS (DERIVED FROM SOURCE TREE) # ============================================================================== PATHS := $(shell find "$(SRCDIR)" -type d -printf '%P ' 2>/dev/null) -FILES := $(shell find "$(SRCDIR)" -type f -name "*.c" -printf '%P ' 2>/dev/null) +FILES := $(shell find "$(SRCDIR)" -type f -name "*.c" -printf '%P ' 2>/dev/null) TMPDIRS := $(BINDIR) $(TMPDIR) $(PATHS:%=$(TMPDIR)/%) OBJECTS := $(FILES:%.c=$(TMPDIR)/%.o) DEPENDS := $(FILES:%.c=$(TMPDIR)/%.d)