diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:21:18 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:21:18 +0100 |
| commit | 5be69e64cfd17b20c0c7fef3b3e2983cf69e8645 (patch) | |
| tree | 1e5241cc04aa7936c95521be4ad6aa817d4a9ab8 /Makefile | |
| parent | 55991c396cddc8ec27182dc5cfe64fdef61da064 (diff) | |
fix types and use dep files
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,11 @@ WORK_DIR = . SRC_DIR = $(WORK_DIR)/src -CSH_FLAGS = -O2 -g -Wall -Wextra -Werror -pedantic -I$(SRC_DIR) +CSH_FLAGS = \ + -O2 -g \ + -Wall -Wextra -Werror -pedantic \ + -MMD -MP \ + -I$(SRC_DIR) CC = clang CC_STD = -std=c11 @@ -50,6 +54,8 @@ OBJECTS := $(SOURCES:.cc=.o) OBJECTS := $(OBJECTS:.c=.o) OBJECTS += $(MI_OBJECT) +DEPS = $(OBJECTS:.o=.d) + LIBRARIES = -lwayland-client all: $(WAYCLOCK) @@ -77,4 +83,6 @@ $(WAYCLOCK): $(OBJECTS) .PHONY: clean clean: @$(RM) $(OBJECTS) $(WAYCLOCK) - @$(RM) $(MI_BUILD)
\ No newline at end of file + @$(RM) $(MI_BUILD) + +-include $(DEPS)
\ No newline at end of file |
