2024-06-06 16:04:22 +03:00
|
|
|
CFLAGS += -Wall -Wextra -Wpedantic -Werror `exec pkg-config --cflags raylib xcb xcb-composite`
|
2024-06-05 23:19:03 +03:00
|
|
|
LDFLAGS := -lm `pkg-config --libs raylib xcb xcb-composite`
|
|
|
|
|
2024-06-06 14:48:57 +03:00
|
|
|
OBJECTS = ./screenshot.o ./windowtree.o
|
2024-06-05 23:19:03 +03:00
|
|
|
|
2024-06-06 16:04:22 +03:00
|
|
|
scrall: $(OBJECTS) main.c
|
2024-06-06 14:48:57 +03:00
|
|
|
$(CC) $(CFLAGS) main.c $(LDFLAGS) -o scrall $(OBJECTS)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $^ -o $@
|
2024-06-05 23:19:03 +03:00
|
|
|
|
|
|
|
clean:
|
2024-06-06 16:04:22 +03:00
|
|
|
$(RM) scrall $(OBJECTS)
|
|
|
|
|
|
|
|
debug:
|
|
|
|
make CFLAGS+=-ggdb
|
|
|
|
gdb ./scrall
|
2024-06-05 23:19:03 +03:00
|
|
|
|
|
|
|
run: scrall
|
|
|
|
./scrall
|