diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-02 19:57:11 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-02 19:57:11 +0100 |
| commit | c2ef5b291c1ef9120ac9d5c29b378317ab189212 (patch) | |
| tree | 94df5b189fd1e6a01413271c458eeeda48108e09 /Makefile | |
| parent | 6c7cdd7ccaea3873b84d5e2def15984bfeaf9da0 (diff) | |
Add basic x11 and drawing scaffolding
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
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) |
