This commit is contained in:
Gvidas Juknevičius 2024-05-30 22:54:43 +03:00
parent 3b68f2dfda
commit b72ba45c79
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 1 additions and 12 deletions

View File

@ -14,6 +14,7 @@ $(BIN): src/main.c src/plug.c
modules/%.dim: src/modules/%.c modules/%.dim: src/modules/%.c
mkdir -p $(dir $@)
$(CC) -o $@ $^ -rdynamic -shared -fPIC $(CCARGS) $(CC) -o $@ $^ -rdynamic -shared -fPIC $(CCARGS)
compile_commands.json: compile_commands.json:

View File

@ -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