projects
/
capstone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f27fd4
)
add makefile
author
kremlin
<ian@kremlin.cc>
Sun, 24 Jan 2016 06:48:31 +0000
(06:48 +0000)
committer
kremlin
<ian@kremlin.cc>
Sun, 24 Jan 2016 06:48:31 +0000
(06:48 +0000)
Makefile
[new file with mode: 0644]
patch
|
blob
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
+