From: kremlin Date: Sun, 24 Jan 2016 06:48:31 +0000 (+0000) Subject: add makefile X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=f35396447da6d5acae22e0d36cc206c8cba3ea80;p=capstone.git add makefile --- diff --git a/Makefile b/Makefile new file mode 100644 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 +