dim/Makefile

28 lines
378 B
Makefile
Raw Normal View History

BIN=./dim
CC=gcc
CCARGS=-Isrc/include -Wall -pedantic
MODULES= \
modules/clock.dim \
modules/battery.dim\
all: $(BIN) $(MODULES) compile_commands.json
$(BIN): src/main.c src/plug.c
$(CC) -o $@ $^ $(CCARGS) -lX11 -ldl
modules/%.dim: src/modules/%.c
2024-05-30 19:54:43 +00:00
mkdir -p $(dir $@)
$(CC) -o $@ $^ -rdynamic -shared -fPIC $(CCARGS)
compile_commands.json:
compiledb -n make