forked from Ports/goldeneye-pc-port
james bond will return.
This commit is contained in:
1 parent
cc14d64e7d
commit
ef209c113c
100 files changed
+17579
-24688
No files matched your search
@@ -216,8 +216,6 @@ ifneq (,$(shell which armips 2>/dev/null))
|
||||
else
|
||||
ARMIPS := $(TOOLS_DIR)/armips
|
||||
endif
|
||||
ASM_PROCESSOR_DIR := tools/asm-processor
|
||||
ASM_PREPROC := python3 $(ASM_PROCESSOR_DIR)/asm_processor.py
|
||||
|
||||
OBJCOPY := $(TOOLCHAIN)objcopy
|
||||
|
||||
@@ -288,11 +286,8 @@ $(BUILD_DIR)/$(OBSEGMENT): $(OBSEG_RZ) $(IMAGE_OBJS)
|
||||
#Build C files in src/
|
||||
# convert AI_PRINT commands from readable to byte-array
|
||||
$(BUILD_DIR)/src/%.o: src/%.c
|
||||
@if grep -q 'GLOBAL_ASM(' $<; then \
|
||||
$(ASM_PREPROC) $(OPTIMIZATION) $< | $(CC) -c $(CFLAGS) $(ASM_PROCESSOR_DIR)/include-stdin.c -o $@ $(OPTIMIZATION); \
|
||||
$(ASM_PREPROC) $(OPTIMIZATION) $< --post-process $@ --assembler "$(AS) $(ASFLAGS)" --asm-prelude $(ASM_PROCESSOR_DIR)/prelude.inc; \
|
||||
elif [ "$$(basename $<)" = "chraidata.c" ]; then \
|
||||
$(ConvertAIPRINT) $< | $(CC) -c $(CFLAGS) $(ASM_PROCESSOR_DIR)/include-stdin.c -o $@ $(OPTIMIZATION); \
|
||||
@if [ "$$(basename $<)" = "chraidata.c" ]; then \
|
||||
$(ConvertAIPRINT) $< | $(CC) -c $(CFLAGS) tools/include-stdin.c -o $@ $(OPTIMIZATION); \
|
||||
else \
|
||||
$(CC) -c $(CFLAGS) -o $@ $(OPTIMIZATION) $<; \
|
||||
fi
|
||||
@@ -317,7 +312,7 @@ $(BUILD_DIR)/assets/obseg/%.o: assets/obseg/%.s $(OBSEG_RZ)
|
||||
#Build C files in assets/
|
||||
$(BUILD_DIR)/assets/%.o: assets/%.c
|
||||
ifeq ($(filter-out %setup%,$<),)
|
||||
$(ConvertAIPRINT) $< | $(CC) -c $(CFLAGS) $(ASM_PROCESSOR_DIR)/include-stdin.c -o $@ $(OPTIMIZATION)
|
||||
$(ConvertAIPRINT) $< | $(CC) -c $(CFLAGS) tools/include-stdin.c -o $@ $(OPTIMIZATION)
|
||||
else
|
||||
$(CC) -c $(CFLAGS) -o $@ $(OPTIMIZATION) $<
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user