summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2012-09-03 00:00:16 +0200
committerChristian Franke <nobody@nowhere.ws>2012-09-03 00:03:29 +0200
commiteee52b591f31a10895bcaae69ecbcc8a8920df79 (patch)
tree82808ef023dcae38b16697b892bb434465f9ff0e /Makefile
parent97140abf540f41e97ae59beff8a3c106010641aa (diff)
add a masterpin which allows to change the pin
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a44356e..7d24dc8 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,10 @@ CFLAGS=-Wall -Wextra -Wno-unused-parameter -pedantic -std=c99
ifdef PIN
DPIN=-DPIN=\"$(PIN)\"
endif
+
+ifdef MASTER_PIN
+DPIN+=-DMASTER_PIN=\"$(MASTER_PIN)\"
+endif
ACFLAGS=-g -mmcu=$(MCU) $(CFLAGS) $(DPIN) -Os -mcall-prologues
# ALDFLAGS=-L/usr/avr/lib/avr4 -L/usr/lib/binutils/avr/2.18
LD=gcc