summaryrefslogtreecommitdiff
path: root/software/watchdog/Makefile
diff options
context:
space:
mode:
authorDrew Barbier <dbarbi1@gmail.com>2017-08-07 10:22:35 -0500
committerDrew Barbier <dbarbi1@gmail.com>2017-08-07 10:22:35 -0500
commit4bb9f8324b2228632518dac4389ff4a43fd39acb (patch)
tree43737582b6c09c463a3c96eef6b9207394d9c370 /software/watchdog/Makefile
parentc43ceddd93513a0b46bb516e39a088a0de3713b6 (diff)
HiFive1 AON Watchdog example
Diffstat (limited to 'software/watchdog/Makefile')
-rw-r--r--software/watchdog/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/software/watchdog/Makefile b/software/watchdog/Makefile
new file mode 100644
index 0000000..f614a4e
--- /dev/null
+++ b/software/watchdog/Makefile
@@ -0,0 +1,9 @@
+TARGET = watchdog
+CFLAGS += -O2 -fno-builtin-printf -DUSE_PLIC -DUSE_M_TIME
+
+BSP_BASE = ../../bsp
+
+C_SRCS += watchdog.c
+C_SRCS += $(BSP_BASE)/drivers/plic/plic_driver.c
+
+include $(BSP_BASE)/env/common.mk