Compare commits

..

No commits in common. "946895c364484844e5d93cc1f6efce2bc30897e5" and "6bd85dfb8f10ce0fecb11db7af78f920b0432762" have entirely different histories.

1 changed files with 7 additions and 4 deletions

View File

@ -16,8 +16,8 @@ OUTPUT = 2D_Engine_Casio_Tool
# Compiler and flags
CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++17 -O2 -I. -no-pie
LDFLAGS = -no-pie
CXXFLAGS = -std=c++17 -g -I.
LDFLAGS =
# Deduce objects
OBJECTS = $(SOURCES:%.cpp=$(BUILD_DIR)/%.o)
@ -59,10 +59,13 @@ $(BUILD_DIR)/%.o: %.cpp
$(Q)mkdir -p $(dir $@)
$(Q)$(CXX) $(CXXFLAGS) -MMD -MP -c $< -o $@
# Arch and BFD header version
ARCH := $(shell arch)
BFD_VER := $(shell objcopy --info 2>/dev/null | grep -m1 '^elf')
# Convert .png.o from .png
$(BUILD_DIR)/%.o: %
#fxconv --cg --toolchain= --arch=x86-64 --outputtarget=elf64 $< -o $@
fxconv --cg --toolchain=sh-elf $< -o $@
fxconv --cg --toolchain= --arch=$(ARCH) --outputtarget=$(BFD_VER) $< -o $@
# Source files dependencies
-include $(OBJECTS:.o=.d)