things/img/scrall/Makefile

17 lines
344 B
Makefile
Raw Normal View History

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