Created an include directory

This commit is contained in:
David Benepe
2020-06-28 20:20:33 -05:00
parent f10ba591fe
commit 15d5b33988
4 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -42,7 +42,8 @@ OBJDUMP = $(CROSS)objdump
OBJCOPY = $(CROSS)objcopy --pad-to=0xC00000 --gap-fill=0xFF
ASFLAGS = -mtune=vr4300 -march=vr4300 $(INCLUDE_FLAGS)
CFLAGS = -c -Wab,-r4300_mul -non_shared -G 0 -Xcpluscomm -Xfullwarn -signed -O2 -mips1
INCLUDE_CFLAGS := -I include -I $(BUILD_DIR) -I $(BUILD_DIR)/include -I src -I .
CFLAGS = -c -Wab,-r4300_mul -non_shared -G 0 -Xcpluscomm -Xfullwarn -signed -O2 $(INCLUDE_CFLAGS) -mips1
LDFLAGS = undefined_syms.txt -T $(LD_SCRIPT) -Map $(BUILD_DIR)/dkr.map
####################### Other Tools #########################
@@ -171,7 +172,11 @@ LD_SCRIPT = $(TARGET).ld
all: $(BUILD_DIR)/$(TARGET).z64
clean:
ifneq ($(wildcard ./build/.*),)
rm -r $(BUILD_DIR)
else
@echo "/build/ directory has already been deleted."
endif
$(BUILD_DIR):
mkdir $(BUILD_DIR) $(addprefix $(BUILD_DIR)/,$(ASM_DIRS) $(SRC_DIRS) $(ASSETS_DIRS))
View File
View File
+1 -1
View File
@@ -10,4 +10,4 @@ fi
#echo "Replace $1 with $2?"
#read
grep -rl "$1" asm/**/*.s src/**/*.{c,h} undefined_syms.txt | xargs sed -i "s/\b$1\b/$2/g"
grep -rl "$1" asm/**/*.s src/**/*.{c,h} include/*.h undefined_syms.txt | xargs sed -i "s/\b$1\b/$2/g"