Restored autodependency generation

This commit is contained in:
Wolfvak 2019-04-19 15:19:37 -03:00
parent c86ebe4baa
commit 796457e54c
4 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,4 +1,5 @@
# Object files # Object files
*.d
*.o *.o
*.ko *.ko
*.obj *.obj
@ -39,6 +40,7 @@ desktop.ini
*.sublime-* *.sublime-*
# Build directories # Build directories
/build
/output /output
/release /release

View File

@ -31,7 +31,7 @@ export INCLUDE := -I"$(shell pwd)/common"
export ASFLAGS := -g -x assembler-with-cpp $(INCLUDE) export ASFLAGS := -g -x assembler-with-cpp $(INCLUDE)
export CFLAGS := -DDBUILTS="\"$(DBUILTS)\"" -DDBUILTL="\"$(DBUILTL)\"" -DVERSION="\"$(VERSION)\"" -DFLAVOR="\"$(FLAVOR)\"" \ export CFLAGS := -DDBUILTS="\"$(DBUILTS)\"" -DDBUILTL="\"$(DBUILTL)\"" -DVERSION="\"$(VERSION)\"" -DFLAVOR="\"$(FLAVOR)\"" \
-g -O2 -Wall -Wextra -Wpedantic -Wcast-align -Wformat=2 -Wno-main \ -g -O2 -Wall -Wextra -Wpedantic -Wcast-align -Wformat=2 -Wno-main \
-fomit-frame-pointer -ffast-math -std=gnu11 \ -fomit-frame-pointer -ffast-math -std=gnu11 -MMD -MP \
-Wno-unused-function -Wno-format-truncation $(INCLUDE) -ffunction-sections -fdata-sections -Wno-unused-function -Wno-format-truncation $(INCLUDE) -ffunction-sections -fdata-sections
export LDFLAGS := -Tlink.ld -nostartfiles -Wl,--gc-sections,-z,max-page-size=512 export LDFLAGS := -Tlink.ld -nostartfiles -Wl,--gc-sections,-z,max-page-size=512
ELF := arm9/arm9.elf arm11/arm11.elf ELF := arm9/arm9.elf arm11/arm11.elf

View File

@ -39,3 +39,5 @@ $(BUILD)/%.o: $(SOURCE)/%.s
@mkdir -p "$(@D)" @mkdir -p "$(@D)"
@echo "[$(PROCESSOR)] $<" @echo "[$(PROCESSOR)] $<"
@$(CC) -c $(ASFLAGS) -o $@ $< @$(CC) -c $(ASFLAGS) -o $@ $<
include $(call rwildcard, $(BUILD), *.d)

View File

@ -39,3 +39,5 @@ $(BUILD)/%.o: $(SOURCE)/%.s
@mkdir -p "$(@D)" @mkdir -p "$(@D)"
@echo "[$(PROCESSOR)] $<" @echo "[$(PROCESSOR)] $<"
@$(CC) -c $(ASFLAGS) -o $@ $< @$(CC) -c $(ASFLAGS) -o $@ $<
include $(call rwildcard, $(BUILD), *.d)