summaryrefslogtreecommitdiff
path: root/cethcan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cethcan/Makefile')
-rw-r--r--cethcan/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/cethcan/Makefile b/cethcan/Makefile
new file mode 100644
index 0000000..33b2069
--- /dev/null
+++ b/cethcan/Makefile
@@ -0,0 +1,14 @@
+love: cethcan
+.PHONY: love
+
+PKGS="libevent jansson"
+
+cethcan: main.o can.o
+ gcc -g -o $@ `pkg-config --libs $(PKGS)` $^
+
+clean:
+ rm -f *.o *.y.c *.y.h *.l.c cethcan
+
+%.o: %.c *.h
+ gcc -c -g -O0 -Wall -Wextra -Wshadow -pedantic -Wno-unused-parameter -Wno-format -std=gnu99 `pkg-config --cflags $(PKGS)` -o $@ $<
+