summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3b9762335bf6e0f608cf1980c0c59e4a06b85f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS=-Werror -O3 -pedantic -g

anzeige: anzeige.c fonts.o humidity.o input_gadgets.o multiplexer.o
	gcc -o "$@" $(CFLAGS) -lpthread -lzip -lxml2 -ljson-c -lcurl $^

fonts.o: fonts.c fonts.h
	gcc -o "$@" $(CFLAGS) -c "$<"

humidity.o: humidity.c humidity.h
	gcc -o "$@" $(CFLAGS) -c "$<"

input_gadgets.o: input_gadgets.c input_gadgets.h
	gcc -o "$@" $(CFLAGS) -c -I/usr/include/libxml2 -I/usr/include/json-c -lzip -lxml2 -ljson-c -lcurl "$<"

multiplexer.o: multiplexer.c multiplexer.h
	gcc -o "$@" $(CFLAGS) -c -lpthread "$<"

all: anzeige

run: all
	./anzeige

.PHONY: all run