diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-01-05 15:17:52 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-01-05 15:17:52 +0100 |
commit | c2bee8d78e0a35b8fd252e1a4743dae59511622b (patch) | |
tree | f2563d3b17ee24582d4c9b4a74cb302219ddbf0d | |
parent | 12a5c251fcad3ae906ed9482d092bd0068f35f8f (diff) | |
download | analog_instruments-c2bee8d78e0a35b8fd252e1a4743dae59511622b.tar.gz |
Makefile: cosmetic changes
-rw-r--r-- | Makefile | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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/ |