panes/Makefile

18 lines
384 B
Makefile
Raw Permalink Normal View History

CC = cc
CFLAGS = -g -std=c11 -DWLR_USE_UNSTABLE $(shell pkg-config --cflags wlroots-0.18 wayland-server) -Iinclude
LDFLAGS = $(shell pkg-config --libs wlroots-0.18 wayland-server)
SRC = src/main.c src/compositor.c src/renderer.c
OBJ = $(SRC:.c=.o)
BIN = panes
all: $(BIN)
$(BIN): $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)
clean:
rm -f $(OBJ) $(BIN)