Replace EEPROM_WRITE switch by compile-time define from Makefile.
authorNathael Pajani <nathael.pajani@ed3l.fr>
Thu, 7 Nov 2013 00:47:35 +0000 (01:47 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
Makefile

index b453dd5..2208c20 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,9 @@ LINKOPTS = -nostartfiles -Wl,--gc-sections -Wl,--build-id=none \
 .PHONY: all
 all: $(NAME)
 
+prog: CFLAGS += -DEEPROM_WRITE
+prog: clean all
+
 
 INCLUDES = include/
 OBJDIR = objs