2024-06-05 23:19:03 +03:00
|
|
|
CFLAGS += -Wall -Wextra `exec pkg-config --cflags raylib xcb xcb-composite`
|
|
|
|
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 14:48:57 +03:00
|
|
|
scrall: main.c $(OBJECTS)
|
|
|
|
$(CC) $(CFLAGS) main.c $(LDFLAGS) -o scrall $(OBJECTS)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $^ -o $@
|
2024-06-05 23:19:03 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) scrall
|
|
|
|
|
|
|
|
run: scrall
|
|
|
|
./scrall
|