summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 17:54:31 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 17:54:31 +1100
commit28bd234a45995b62544e6b5f70d40dfe39ef2e99 (patch)
tree1aca5cd820091e6b9652ee7d104b9b337343e0fb /Makefile
parent68f590c848e0e91d70e7116655464f392ed6df46 (diff)
recompile .o files when header changes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0c88a03..597ecdc 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,7 @@ endif
# $^ - prerequisites of current rule separated by spaces
# $< - first prerequisite file only
-$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
+$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c include/celeritas.h
@mkdir -p $(OBJ_DIR)
$(CC) $(CFLAGS) -c $< -o $@