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
1
.github/workflows/build_macclassic.yml
vendored
1
.github/workflows/build_macclassic.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue