fix makefile includes

This commit is contained in:
Alex Bates 2020-10-15 00:31:16 +01:00
parent 0a2b3780a3
commit d52f53e9c6
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706

View File

@ -9,7 +9,7 @@ BUILD_DIR = build
SRC_DIRS := src src/os src/os/nusys
ASM_DIRS := asm asm/os
INCLUDE_DIRS := include include/PR
INCLUDE_DIRS := include include/PR src
DATA_DIRS := bin
# Source code files
@ -86,7 +86,7 @@ $(BUILD_DIR)/$(TARGET).elf: $(O_FILES) $(LD_SCRIPT)
$(BUILD_DIR)/%.o: %.s
$(AS) $(ASFLAGS) -o $@ $<
$(BUILD_DIR)/%.o: %.c %.h $(H_FILES)
$(BUILD_DIR)/%.o: %.c $(H_FILES)
cpp $(CPPFLAGS) $< | $(CC) $(CFLAGS) -o - | $(OLD_AS) $(OLDASFLAGS) - -o $@
$(BUILD_DIR)/%.o: %.bin