summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-22 14:19:25 +0200
committerErich Eckner <git@eckner.net>2018-10-22 14:19:25 +0200
commitae75b15e6241232c2adb3ae3b53819d3a4dd638d (patch)
tree4a4c738c2bfa8fff0ac2dbe0a90444120bb566c5 /Makefile
parent9cbc55a81c76dd3bfb480b9f280f9958ce6ef592 (diff)
downloadanzeige-ae75b15e6241232c2adb3ae3b53819d3a4dd638d.tar.xz
split of logical parts into separate files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d2f3cb0..9ac123a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,13 @@
-anzeige: anzeige.c fonts.h
- gcc -o "$@" -Werror=implicit-function-declaration -lpthread "$<"
+CFLAGS="-Werror=implicit-function-declaration"
+
+anzeige: anzeige.c fonts.h input_gadgets.o multiplexer.o
+ gcc -o "$@" $(CFLAGS) -lpthread -lcurl $^
+
+input_gadgeds.o: input_gadgeds.c input_gadgeds.h
+ gcc -o "$@" $(CFLAGS) -c -lcurl "$<"
+
+multiplexer.o: multiplexer.c multiplexer.h
+ gcc -o "$@" $(CFLAGS) -c -lpthread "$<"
all: anzeige