aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-07 02:20:49 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-07 02:20:49 +0200
commit8824903ae286dae28cf6f2ddc0f488e670bd5b51 (patch)
tree78e637d3e751cee9353347fa1009a10ddfbf5d90 /Makefile
downloadjson-rpc-shell-8824903ae286dae28cf6f2ddc0f488e670bd5b51.tar.gz
json-rpc-shell-8824903ae286dae28cf6f2ddc0f488e670bd5b51.tar.xz
json-rpc-shell-8824903ae286dae28cf6f2ddc0f488e670bd5b51.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9374f3b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+SHELL = /bin/sh
+CC = clang
+# -Wunused-function is pretty annoying here, as everything is static
+CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function -ggdb
+# -lpthread is only there for debugging (gdb & errno)
+LDFLAGS = `pkg-config --libs libcurl jansson` -lpthread -lreadline
+
+.PHONY: all clean
+.SUFFIXES:
+
+targets = json-rpc-shell
+
+all: $(targets)
+
+clean:
+ rm -f $(targets)
+
+json-rpc-shell: json-rpc-shell.c
+ $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS)