summaryrefslogtreecommitdiff
path: root/cethcan/Makefile
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-06-04 18:27:20 +0000
committerroot <root@beaglebone.local.sublab.org>2013-06-20 23:13:04 +0000
commitc35cf61a00b0bd8c65b4aec5dc76eb235ab1dc81 (patch)
tree6c86acf5ea772c3ed6140e9984b865eb2a879c47 /cethcan/Makefile
parent0df0ebe520cf78964491ea51acb30c2c225dff79 (diff)
cethcan: add jsonrpc to Makefile
Diffstat (limited to 'cethcan/Makefile')
-rw-r--r--cethcan/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/cethcan/Makefile b/cethcan/Makefile
index 5368ef0..37af4d6 100644
--- a/cethcan/Makefile
+++ b/cethcan/Makefile
@@ -2,13 +2,18 @@ love: cethcan
.PHONY: love
PKGS="libevent jansson"
+L_CFLAGS=-g -O0 -Wall -Wextra -Wshadow -pedantic -Wno-unused-parameter -Wno-format -std=gnu99 `pkg-config --cflags $(PKGS)` $(CFLAGS)
+L_LDFLAGS=-g `pkg-config --libs $(PKGS)` -lcrypto $(LDFLAGS)
-cethcan: main.o can.o ether.o light.o beanctr.o http.o socketcan.o
- gcc -g -o $@ `pkg-config --libs $(PKGS)` -lcrypto $^
+cethcan: main.o can.o ether.o light.o beanctr.o http.o socketcan.o jsonrpc.o
+ gcc $(L_LDFLAGS) -o $@ $^
clean:
rm -f *.o *.y.c *.y.h *.l.c cethcan
+jsonrpc.o: jsonrpc/jsonrpc.c jsonrpc/jsonrpc.h
+ gcc $(L_CFLAGS) -c -o $@ $<
+
%.o: %.c *.h
- gcc -c -g -O0 -Wall -Wextra -Wshadow -pedantic -Wno-unused-parameter -Wno-format -std=gnu99 `pkg-config --cflags $(PKGS)` -o $@ $<
+ gcc $(L_CFLAGS) -c -o $@ $<