23 lines
429 B
Makefile
23 lines
429 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
|
|
|
|
all: scrall
|
|
|
|
scrall: $(OBJECTS) main.c
|
|
$(CC) $(CFLAGS) main.c $(OBJECTS) $(LDFLAGS) -o scrall
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $^ -o $@
|
|
|
|
clean:
|
|
$(RM) scrall $(OBJECTS)
|
|
|
|
debug:
|
|
make CFLAGS+=-ggdb
|
|
gdb ./scrall
|
|
|
|
run: scrall
|
|
./scrall
|