diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-17 15:42:49 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-17 15:42:49 +0100 |
| commit | ab92cac18652f72be12f68b5a96095ba8eb5afdf (patch) | |
| tree | e52a5f295c7cda59e67a341fa87d25983bd56745 /Makefile | |
| parent | f8363e89257e8b0a4ff71accbd7b6be22935274f (diff) | |
Reorganize project structure
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 37 |
1 files changed, 22 insertions, 15 deletions
@@ -1,21 +1,26 @@ -SRC = $(wildcard *.c) +SRC = $(wildcard src/*.c) OBJ = $(SRC:.c=.o) BIN = comet.bin -DEPS = \ - xcb \ - xcb-aux \ - xcb-icccm \ - xcb-ewmh \ - xcb-xrm \ - xcb-shape \ - xcb-errors \ - "xcb-randr >= 1.5" \ - "glib-2.0 >= 2.44" \ - pangocairo - -CFLAGS := $(shell pkg-config --cflags $(DEPS)) -ggdb -LDFLAGS := $(shell pkg-config --libs $(DEPS)) -lm +PCDEP = xcb \ + xcb-aux \ + xcb-icccm \ + xcb-ewmh \ + xcb-xrm \ + xcb-shape \ + xcb-errors \ + "xcb-randr >= 1.5" \ + "glib-2.0 >= 2.44" \ + pangocairo + +CFLAGS := $(shell pkg-config --cflags $(PCDEP)) +LDFLAGS := $(shell pkg-config --libs $(PCDEP)) -lm + +ifdef RELEASE +CFLAGS += -O2 +else +CFLAGS += -ggdb +endif all: $(BIN) @@ -27,3 +32,5 @@ $(BIN): $(OBJ) clean: rm -rf $(BIN) $(OBJ) + +# vim: ts=4 sw=4 |
