1.1 --- a/Makefile Sat Aug 29 18:00:34 2015 +0200
1.2 +++ b/Makefile Tue Sep 27 00:36:33 2016 +0200
1.3 @@ -11,9 +11,12 @@
1.4 EXTRA_CINCS =
1.5 EXTRA_CXXINCS =
1.6
1.7 +CIRCUIT = 74HC273
1.8 +#CIRCUIT = 74HC595
1.9
1.10 ### Internal definitions.
1.11
1.12 +CIRCUIT_DEFS = -DCIRCUIT_$(CIRCUIT)
1.13
1.14 ARDUINO = $(INSTALL_DIR)/hardware/arduino/cores/arduino
1.15 VARIANT = $(INSTALL_DIR)/hardware/arduino/variants/standard
1.16 @@ -33,8 +36,8 @@
1.17 DEBUG = stabs
1.18
1.19 # Place -D or -U options here
1.20 -CDEFS = -DF_CPU=$(F_CPU)
1.21 -CXXDEFS = -DF_CPU=$(F_CPU)
1.22 +CDEFS = -DF_CPU=$(F_CPU) $(CIRCUIT_DEFS)
1.23 +CXXDEFS = -DF_CPU=$(F_CPU) $(CIRCUIT_DEFS)
1.24
1.25 # Place -I options here
1.26 CINCS = -I$(ARDUINO) -I$(VARIANT) $(EXTRA_CINCS)