dim/Makefile

27 lines
383 B
Makefile
Raw Normal View History

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