uwu
This commit is contained in:
parent
3b68f2dfda
commit
b72ba45c79
1
Makefile
1
Makefile
|
@ -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:
|
||||||
|
|
12
build.sh
12
build.sh
|
@ -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
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user