diff --git a/Makefile b/Makefile index e92cdaa..61a5a9a 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ $(BIN): src/main.c src/plug.c modules/%.dim: src/modules/%.c + mkdir -p $(dir $@) $(CC) -o $@ $^ -rdynamic -shared -fPIC $(CCARGS) compile_commands.json: diff --git a/build.sh b/build.sh deleted file mode 100644 index 641002a..0000000 --- a/build.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/bash - -set -xe -mkdir -p modules - -CCARGS="-Isrc/include -Wall -pedantic" - -cc -o dim src/main.c src/plug.c $CCARGS -lX11 -ldl -cc -o modules/clocky.dim src/modules/clock.c -rdynamic -shared -fPIC $CCARGS -cc -o modules/battery.dim src/modules/battery.c -rdynamic -shared -fPIC $CCARGS - -