Change the way python generates .o files via .S

This commit is contained in:
Thomas Lovén 2017-12-06 21:28:50 +01:00
parent 6cbdb8f7de
commit 83e204e52e

View File

@ -20,8 +20,8 @@ LDFLAGS := -n -nostdlib -lgcc -T Link.ld
kernel: $(OBJ) kernel: $(OBJ)
$(LINK.c) $^ -o $@ $(LINK.c) $^ -o $@
%.S: %.S.py %.o: %.S.py
python $^ > $@ python $^ | $(COMPILE.S) $(DEPFLAGS) -x assembler-with-cpp - -o $@
# Automatically generate dependency files # Automatically generate dependency files
# Those keep track of which header files are used by which source files # Those keep track of which header files are used by which source files
@ -42,7 +42,6 @@ clean:
rm -rf $(OBJ) $(DEP) kernel rm -rf $(OBJ) $(DEP) kernel
.PHONY: install clean .PHONY: install clean
.INTERMEDIATE: $(basename $(filter %.py, $(SRC)))
# Include generated dependency files # Include generated dependency files
include $(DEP) include $(DEP)