add makefile
authorkremlin <ian@kremlin.cc>
Sun, 24 Jan 2016 06:48:31 +0000 (06:48 +0000)
committerkremlin <ian@kremlin.cc>
Sun, 24 Jan 2016 06:48:31 +0000 (06:48 +0000)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..8087f81
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+.PHONY: all
+
+CFLAGS+=       -Wall -Wextra -Werror -pedantic -std=c89
+LDLIBS+=       -lpthread -lprussdrv
+CC?=   /usr/bin/cc
+
+# comment out as appropriate
+CFLAGS+=       -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable
+CFLAGS+=       -O0 -g
+
+all: loader rom
+
+loader:
+       $(CC) $(CFLAGS) $(LDLIBS) src/pru_loader.c -o bin/pru_loader
+rom:
+       pasm -b src/pru.S bin/pru
+