things/img/scrall/Makefile

21 lines
416 B
Makefile

CFLAGS += -Wall -Wextra -Wpedantic -Werror `exec pkg-config --cflags raylib xcb xcb-composite`
LDFLAGS := -lm `pkg-config --libs raylib xcb xcb-composite`
OBJECTS = ./screenshot.o ./windowtree.o
scrall: $(OBJECTS) main.c
$(CC) $(CFLAGS) main.c $(LDFLAGS) -o scrall $(OBJECTS)
%.o: %.c
$(CC) $(CFLAGS) -c $^ -o $@
clean:
$(RM) scrall $(OBJECTS)
debug:
make CFLAGS+=-ggdb
gdb ./scrall
run: scrall
./scrall