From c2bee8d78e0a35b8fd252e1a4743dae59511622b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 5 Jan 2022 15:17:52 +0100 Subject: Makefile: cosmetic changes --- Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8cd8a87..3dfb044 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # License: MIT MCU = atmega8 -# only for avrdude +# Only used by avrdude PROGRAMMER = dragon_isp CPUFREQ = 8000000 #8MHz @@ -33,6 +33,7 @@ build: dir $(OBJ) @echo LD $(OBJ) @$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS) @avr-objcopy -O ihex $(BUILDDIR)/$(OUTPUT) $(BUILDDIR)/$(OUTPUT).hex + @echo @avr-size --mcu=$(MCU) --format=avr $(BUILDDIR)/$(OUTPUT) debug: -D _DEBUG @@ -47,7 +48,7 @@ $(OBJECTDIR)/%.o: $(SOURCEDIR)/%.c @$(CC) -c $(CFLAGS) $< -o $@ .PHONY: clean -clean: +clean: @echo RM $(OBJ) @echo RM $(BUILDDIR)/$(OUTPUT) @rm -df $(OBJ) @@ -72,9 +73,3 @@ fuse-minipro: dir devsetup: @echo "--target=avr -isystem /usr/avr/include/ $(CFLAGS)" | tr ' ' '\n' > compile_flags.txt - - -#--target=avr -#tmarch=atmega8 -#-mmcu=atmega8 -#-I/usr/avr/include/ -- cgit v1.2.3