Compare commits
No commits in common. "946895c364484844e5d93cc1f6efce2bc30897e5" and "6bd85dfb8f10ce0fecb11db7af78f920b0432762" have entirely different histories.
946895c364
...
6bd85dfb8f
11
Makefile
11
Makefile
|
@ -16,8 +16,8 @@ OUTPUT = 2D_Engine_Casio_Tool
|
||||||
|
|
||||||
# Compiler and flags
|
# Compiler and flags
|
||||||
CXX = g++
|
CXX = g++
|
||||||
CXXFLAGS = -Wall -Wextra -std=c++17 -O2 -I. -no-pie
|
CXXFLAGS = -std=c++17 -g -I.
|
||||||
LDFLAGS = -no-pie
|
LDFLAGS =
|
||||||
|
|
||||||
# Deduce objects
|
# Deduce objects
|
||||||
OBJECTS = $(SOURCES:%.cpp=$(BUILD_DIR)/%.o)
|
OBJECTS = $(SOURCES:%.cpp=$(BUILD_DIR)/%.o)
|
||||||
|
@ -59,10 +59,13 @@ $(BUILD_DIR)/%.o: %.cpp
|
||||||
$(Q)mkdir -p $(dir $@)
|
$(Q)mkdir -p $(dir $@)
|
||||||
$(Q)$(CXX) $(CXXFLAGS) -MMD -MP -c $< -o $@
|
$(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
|
# Convert .png.o from .png
|
||||||
$(BUILD_DIR)/%.o: %
|
$(BUILD_DIR)/%.o: %
|
||||||
#fxconv --cg --toolchain= --arch=x86-64 --outputtarget=elf64 $< -o $@
|
fxconv --cg --toolchain= --arch=$(ARCH) --outputtarget=$(BFD_VER) $< -o $@
|
||||||
fxconv --cg --toolchain=sh-elf $< -o $@
|
|
||||||
|
|
||||||
# Source files dependencies
|
# Source files dependencies
|
||||||
-include $(OBJECTS:.o=.d)
|
-include $(OBJECTS:.o=.d)
|
||||||
|
|
Loading…
Reference in New Issue