summaryrefslogtreecommitdiff
path: root/cethcan/Makefile
blob: a81124ca3db5cd3f47d86fa05b0b6990aa88a838 (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
	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 $@ $<