dim/Makefile
2024-06-16 20:09:24 +03:00

30 lines
461 B
Makefile

BIN=./dim
CC=gcc
CCARGS=-Isrc/include -Wall -pedantic
MODULES= \
modules/clock.dim \
modules/battery.dim \
modules/timesince.dim \
modules/volume.dim
all: $(BIN) $(MODULES) compile_commands.json
$(BIN): src/main.c src/plug.c src/socket.c src/util.c
$(CC) -o $@ $^ $(CCARGS) -lX11 -ldl
modules/%.dim: src/modules/%.c
mkdir -p $(dir $@)
$(CC) -o $@ $^ -rdynamic -shared -fPIC $(CCARGS) -lasound
compile_commands.json:
compiledb -n make