Mac classic: Add 68040 optimised build

This commit is contained in:
UnknownShadow200 2025-01-02 07:56:40 +11:00
parent a46626cf78
commit 68fd12f52c
2 changed files with 13 additions and 4 deletions

View file

@ -23,6 +23,7 @@ jobs:
run: |
make macclassic_68k RETRO68=/Retro68-build/toolchain
make macclassic_ppc RETRO68=/Retro68-build/toolchain
make macclassic_68k RETRO68=/Retro68-build/toolchain ARCH_68040=1
- uses: ./.github/actions/notify_failure
@ -49,4 +50,4 @@ jobs:
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
WORKFLOW_NAME: 'macclassic'
WORKFLOW_NAME: 'macclassic'

View file

@ -4,7 +4,7 @@ RETRO68=../Retro68-build/toolchain
PREFIX=$(RETRO68)/m68k-apple-macos
CC=$(RETRO68)/bin/m68k-apple-macos-gcc
CXX=$(RETRO68)/bin/m68k-apple-macos-g++
CFLAGS=-O1 -fno-math-errno -DCC_BUILD_NOFPU
CFLAGS=-O1 -fno-math-errno
REZ=$(RETRO68)/bin/Rez
@ -12,12 +12,20 @@ LDFLAGS=-lm
RINCLUDES=$(PREFIX)/RIncludes
REZFLAGS=-I$(RINCLUDES)
TARGET := ClassiCube-68k
BUILD_DIR := build-68k
SOURCE_DIR := src
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
ifdef ARCH_68040
TARGET := ClassiCube-68040
BUILD_DIR := build-68k
CFLAGS += -march=68040
else
TARGET := ClassiCube-68k
BUILD_DIR := build-68040
CFLAGS += -DCC_BUILD_NOFPU
endif
# Dependency tracking
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.d
DEPFILES := $(C_OBJECTS:%.o=%.d)