summaryrefslogtreecommitdiff
path: root/cethcan/Makefile
blob: 5368ef0aab6e36f6cc8fb71cb02d0d3f89592755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
love: cethcan
.PHONY: love

PKGS="libevent jansson"

cethcan: main.o can.o ether.o light.o beanctr.o http.o socketcan.o
	gcc -g -o $@ `pkg-config --libs $(PKGS)` -lcrypto $^

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 $@ $<