mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Mac classic: Add 68040 optimised build
This commit is contained in:
parent
a46626cf78
commit
68fd12f52c
2 changed files with 13 additions and 4 deletions
3
.github/workflows/build_macclassic.yml
vendored
3
.github/workflows/build_macclassic.yml
vendored
|
@ -23,6 +23,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
make macclassic_68k RETRO68=/Retro68-build/toolchain
|
make macclassic_68k RETRO68=/Retro68-build/toolchain
|
||||||
make macclassic_ppc 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
|
- uses: ./.github/actions/notify_failure
|
||||||
|
@ -49,4 +50,4 @@ jobs:
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
with:
|
with:
|
||||||
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
||||||
WORKFLOW_NAME: 'macclassic'
|
WORKFLOW_NAME: 'macclassic'
|
||||||
|
|
|
@ -4,7 +4,7 @@ RETRO68=../Retro68-build/toolchain
|
||||||
PREFIX=$(RETRO68)/m68k-apple-macos
|
PREFIX=$(RETRO68)/m68k-apple-macos
|
||||||
CC=$(RETRO68)/bin/m68k-apple-macos-gcc
|
CC=$(RETRO68)/bin/m68k-apple-macos-gcc
|
||||||
CXX=$(RETRO68)/bin/m68k-apple-macos-g++
|
CXX=$(RETRO68)/bin/m68k-apple-macos-g++
|
||||||
CFLAGS=-O1 -fno-math-errno -DCC_BUILD_NOFPU
|
CFLAGS=-O1 -fno-math-errno
|
||||||
|
|
||||||
REZ=$(RETRO68)/bin/Rez
|
REZ=$(RETRO68)/bin/Rez
|
||||||
|
|
||||||
|
@ -12,12 +12,20 @@ LDFLAGS=-lm
|
||||||
RINCLUDES=$(PREFIX)/RIncludes
|
RINCLUDES=$(PREFIX)/RIncludes
|
||||||
REZFLAGS=-I$(RINCLUDES)
|
REZFLAGS=-I$(RINCLUDES)
|
||||||
|
|
||||||
TARGET := ClassiCube-68k
|
|
||||||
BUILD_DIR := build-68k
|
|
||||||
SOURCE_DIR := src
|
SOURCE_DIR := src
|
||||||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
||||||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
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
|
# Dependency tracking
|
||||||
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.d
|
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.d
|
||||||
DEPFILES := $(C_OBJECTS:%.o=%.d)
|
DEPFILES := $(C_OBJECTS:%.o=%.d)
|
||||||
|
|
Loading…
Reference in a new issue