summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 $@ $<