From c2ef5b291c1ef9120ac9d5c29b378317ab189212 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 2 Nov 2023 19:57:11 +0100 Subject: Add basic x11 and drawing scaffolding --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..288a9ea --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +SRC = $(wildcard *.c) +OBJ = $(SRC:.c=.o) +BIN = comet.bin + +DEPS = cairo \ + xcb \ + xcb-icccm \ + xcb-xrm \ + glib-2.0 +CFLAGS := $(shell pkgconf --cflags $(DEPS)) +LDFLAGS := $(shell pkgconf --libs $(DEPS)) -lm + +all: $(BIN) + +$(BIN): $(OBJ) + $(CC) -o $@ $(LDFLAGS) $^ + +%.o: %.c + $(CC) -o $@ -c $(CFLAGS) $^ + +clean: + rm -rf $(BIN) $(OBJ) -- cgit v1.2.3