summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f04d9ec..b494daa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
CFLAGS=-Werror -O3 -pedantic
-anzeige: anzeige.c fonts.o input_gadgets.o multiplexer.o
+anzeige: anzeige.c fonts.o humidity.o input_gadgets.o multiplexer.o
gcc -o "$@" $(CFLAGS) -lpthread -lzip -lxml2 -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 -lzip -lxml2 -lcurl "$<"
@@ -14,4 +17,7 @@ multiplexer.o: multiplexer.c multiplexer.h
all: anzeige
-.PHONY: all
+run: all
+ ./anzeige
+
+.PHONY: all run