aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-02 19:57:11 +0100
committerFederico Angelilli <code@fedang.net>2023-11-02 19:57:11 +0100
commitc2ef5b291c1ef9120ac9d5c29b378317ab189212 (patch)
tree94df5b189fd1e6a01413271c458eeeda48108e09 /Makefile
parent6c7cdd7ccaea3873b84d5e2def15984bfeaf9da0 (diff)
Add basic x11 and drawing scaffolding
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
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)