diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2019-06-25 17:59:05 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2019-06-26 01:04:41 +0200 |
commit | 931806b02c4531e3629ee92a8854abc9614739c5 (patch) | |
tree | 1cf969d0cdbe6d70b2688db51c6ac1f17dd3f5eb /Makefile | |
parent | 461109e695f163303549648d93dc7d9253e88b81 (diff) |
Optionally enable communicating with the host.
Add ENABLE_SERIAL=1 to the build environment to enable that feature.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -23,6 +23,10 @@ CXXFLAGS = -DARDUINO_AVR_MODEL01 \ -DUSB_MANUFACTURER="\"keyboardio\"" -DUSB_PRODUCT="\"Model 01\"" \ -DKALEIDOSCOPE_HARDWARE_H="\"Kaleidoscope-Hardware-Model01.h\"" +ifeq ($(ENABLE_SERIAL),1) +CXXFLAGS += -DENABLE_SERIAL +endif + AVRDUDE_OPTS = -q AVRDUDE_CONF = /etc/avrdude.conf #MONITOR_PORT = $(firstword $(wildcard /dev/serial/by-id/usb-keyboardio_Model_01_*)) |