summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-05 15:17:52 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-05 15:17:52 +0100
commitc2bee8d78e0a35b8fd252e1a4743dae59511622b (patch)
treef2563d3b17ee24582d4c9b4a74cb302219ddbf0d /Makefile
parent12a5c251fcad3ae906ed9482d092bd0068f35f8f (diff)
downloadanalog_instruments-c2bee8d78e0a35b8fd252e1a4743dae59511622b.tar.gz
Makefile: cosmetic changes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 3 insertions, 8 deletions
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/