aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-06-08 15:40:06 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-06-13 23:18:59 -0400
commit4dd3478fc126690182f7da44275eac40f42816c6 (patch)
treec76a5fa690b136927996d73f889ad72fb6ec80a4 /src
parent8e1c0941b0664b102ec18a60ac61719aa9d7f9bc (diff)
downloadkutter-4dd3478fc126690182f7da44275eac40f42816c6.tar.gz
kutter-4dd3478fc126690182f7da44275eac40f42816c6.tar.xz
kutter-4dd3478fc126690182f7da44275eac40f42816c6.zip
Makefile: Move listing of directories to create to board makefiles
Rename DIRS to dirs-y and populate it in the per-board Makefile rules. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/avr/Makefile2
-rw-r--r--src/simulator/Makefile2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/avr/Makefile b/src/avr/Makefile
index 0e51ed7f..ce580265 100644
--- a/src/avr/Makefile
+++ b/src/avr/Makefile
@@ -3,6 +3,8 @@
# Use the avr toolchain
CROSS_PREFIX=avr-
+dirs-y += src/avr lib/pjrc_usb_serial
+
CFLAGS-y += -mmcu=$(CONFIG_MCU) -DF_CPU=$(CONFIG_CLOCK_FREQ)
LDFLAGS-y += -Wl,--relax
diff --git a/src/simulator/Makefile b/src/simulator/Makefile
index ed250768..34cfa4c8 100644
--- a/src/simulator/Makefile
+++ b/src/simulator/Makefile
@@ -1,4 +1,6 @@
# Additional simulator build rules
+dirs-y += src/simulator src/generic
+
src-y += simulator/main.c simulator/gpio.c
src-y += generic/crc16_ccitt.c generic/alloc.c