aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)