summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-22 13:21:25 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-22 13:21:25 -0400
commit920aeb28996c8a404316f1304ee3f46511fb7b1a (patch)
tree2db55fcd5094aaf20450a8dfd9fdb620926a85e0 /Makefile
parentremove bad includes (diff)
downloadcomus-920aeb28996c8a404316f1304ee3f46511fb7b1a.tar.gz
comus-920aeb28996c8a404316f1304ee3f46511fb7b1a.tar.bz2
comus-920aeb28996c8a404316f1304ee3f46511fb7b1a.zip
force rebuild on header change
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6eb1140..bb015aa 100644
--- a/Makefile
+++ b/Makefile
@@ -78,13 +78,13 @@ clean:
build: $(BIN)/$(ISO)
-$(A_OBJ): $(BIN)/%.S.o : %.S
+$(A_OBJ): $(BIN)/%.S.o : %.S $(H_SRC)
mkdir -p $(@D)
printf "\033[33m AS \033[0m%s\n" $<
$(CPP) $(CPPFLAGS) -o $@.cpp $<
$(AS) -o $@ $@.cpp
-$(C_OBJ): $(BIN)/%.o : %.c
+$(C_OBJ): $(BIN)/%.o : %.c $(H_SRC)
mkdir -p $(@D)
printf "\033[34m CC \033[0m%s\n" $<
$(CC) -c $(CFLAGS) -o $@ $<