Latest compatible version of Classicube from the original GitHub repository (https://github.com/ClassiCube/ClassiCube) that can be compiled on Classicube for PowerMac PPC running Mac OS X 10.4.
This commit is contained in:
23
misc/macclassic/68APPL.r
Normal file
23
misc/macclassic/68APPL.r
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "Processes.r"
|
||||
#include "Retro68.r"
|
||||
|
||||
resource 'SIZE' (-1) {
|
||||
reserved,
|
||||
ignoreSuspendResumeEvents,
|
||||
reserved,
|
||||
cannotBackground,
|
||||
needsActivateOnFGSwitch,
|
||||
backgroundAndForeground,
|
||||
dontGetFrontClicks,
|
||||
ignoreChildDiedEvents,
|
||||
is32BitCompatible,
|
||||
notHighLevelEventAware,
|
||||
onlyLocalHLEvents,
|
||||
notStationeryAware,
|
||||
dontUseTextEditServices,
|
||||
reserved,
|
||||
reserved,
|
||||
reserved,
|
||||
8192 * 1024, // preferred (maximum) memory size
|
||||
2900 * 1024, // minimum memory size (enough to load launcher)
|
||||
};
|
||||
66
misc/macclassic/Makefile_68k
Normal file
66
misc/macclassic/Makefile_68k
Normal file
@@ -0,0 +1,66 @@
|
||||
# path to RETRO68
|
||||
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
|
||||
|
||||
REZ=$(RETRO68)/bin/Rez
|
||||
|
||||
LDFLAGS=-lm
|
||||
RINCLUDES=$(PREFIX)/RIncludes
|
||||
REZFLAGS=-I$(RINCLUDES)
|
||||
|
||||
ifdef ARCH_68040
|
||||
TARGET := ClassiCube-68040
|
||||
BUILD_DIR := build/mac_68040
|
||||
CFLAGS += -march=68040
|
||||
else
|
||||
TARGET := ClassiCube-68k
|
||||
BUILD_DIR := build/mac_68k
|
||||
CFLAGS += -DCC_BUILD_NOFPU -DCC_BUILD_TINYMEM
|
||||
endif
|
||||
|
||||
SOURCE_DIR := src
|
||||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
||||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
||||
|
||||
# Dependency tracking
|
||||
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.d
|
||||
DEPFILES := $(C_OBJECTS:%.o=%.d)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# main targets
|
||||
#---------------------------------------------------------------------------------
|
||||
default: $(BUILD_DIR) $(TARGET).bin
|
||||
|
||||
$(BUILD_DIR):
|
||||
mkdir -p $(BUILD_DIR)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# executable generation
|
||||
#---------------------------------------------------------------------------------
|
||||
$(TARGET).bin $(TARGET).APPL $(TARGET).dsk: $(TARGET).code.bin
|
||||
$(REZ) $(REZFLAGS) \
|
||||
--copy "$(TARGET).code.bin" \
|
||||
"misc/macclassic/68APPL.r" \
|
||||
-t "APPL" -c "????" \
|
||||
-o $(TARGET).bin --cc $(TARGET).APPL --cc $(TARGET).dsk
|
||||
|
||||
$(TARGET).code.bin: $(C_OBJECTS)
|
||||
$(CC) $(C_OBJECTS) -o $@ $(LDFLAGS)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# object generation
|
||||
#---------------------------------------------------------------------------------
|
||||
$(C_OBJECTS): $(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c
|
||||
$(CC) $(CFLAGS) $(DEPFLAGS) -c $< -o $@
|
||||
|
||||
# Dependency tracking
|
||||
$(DEPFILES):
|
||||
|
||||
include $(wildcard $(DEPFILES))
|
||||
65
misc/macclassic/Makefile_ppc
Normal file
65
misc/macclassic/Makefile_ppc
Normal file
@@ -0,0 +1,65 @@
|
||||
# path to RETRO68
|
||||
RETRO68=../Retro68-build/toolchain
|
||||
|
||||
PREFIX=$(RETRO68)/powerpc-apple-macos
|
||||
CC=$(RETRO68)/bin/powerpc-apple-macos-gcc
|
||||
CXX=$(RETRO68)/bin/powerpc-apple-macos-g++
|
||||
CFLAGS=-O1 -fno-math-errno
|
||||
|
||||
REZ=$(RETRO68)/bin/Rez
|
||||
MakePEF=$(RETRO68)/bin/MakePEF
|
||||
|
||||
LDFLAGS=-lm
|
||||
RINCLUDES=$(PREFIX)/RIncludes
|
||||
REZFLAGS=-I$(RINCLUDES)
|
||||
|
||||
TARGET := ClassiCube-ppc
|
||||
BUILD_DIR := build/mac_ppc
|
||||
SOURCE_DIR := src
|
||||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
||||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
||||
|
||||
# Dependency tracking
|
||||
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.d
|
||||
DEPFILES := $(C_OBJECTS:%.o=%.d)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# main targets
|
||||
#---------------------------------------------------------------------------------
|
||||
default: $(BUILD_DIR) $(TARGET).bin
|
||||
|
||||
$(BUILD_DIR):
|
||||
mkdir -p $(BUILD_DIR)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# executable generation
|
||||
#---------------------------------------------------------------------------------
|
||||
$(TARGET).bin $(TARGET).APPL $(TARGET).dsk: $(TARGET).pef
|
||||
$(REZ) $(REZFLAGS) \
|
||||
"misc/macclassic/ppcAPPL.r" \
|
||||
-t "APPL" -c "????" \
|
||||
--data $(TARGET).pef \
|
||||
-o $(TARGET).bin --cc $(TARGET).APPL --cc $(TARGET).dsk
|
||||
|
||||
$(TARGET).elf: $(C_OBJECTS)
|
||||
$(CC) $(C_OBJECTS) -o $@ $(LDFLAGS)
|
||||
|
||||
$(TARGET).pef: $(TARGET).elf
|
||||
$(MakePEF) $(TARGET).elf -o $(TARGET).pef
|
||||
|
||||
$(BUILD_DIR):
|
||||
mkdir -p $(BUILD_DIR)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# object generation
|
||||
#---------------------------------------------------------------------------------
|
||||
$(C_OBJECTS): $(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c
|
||||
$(CC) $(CFLAGS) $(DEPFLAGS) -c $< -o $@
|
||||
|
||||
# Dependency tracking
|
||||
$(DEPFILES):
|
||||
|
||||
include $(wildcard $(DEPFILES))
|
||||
32
misc/macclassic/ppcAPPL.r
Normal file
32
misc/macclassic/ppcAPPL.r
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "Processes.r"
|
||||
#include "CodeFragments.r"
|
||||
|
||||
resource 'cfrg' (0) {
|
||||
{
|
||||
kPowerPCCFragArch, kIsCompleteCFrag, kNoVersionNum, kNoVersionNum,
|
||||
kDefaultStackSize, kNoAppSubFolder,
|
||||
kApplicationCFrag, kDataForkCFragLocator, kZeroOffset, kCFragGoesToEOF,
|
||||
"ClassiCube"
|
||||
}
|
||||
};
|
||||
|
||||
resource 'SIZE' (-1) {
|
||||
reserved,
|
||||
ignoreSuspendResumeEvents,
|
||||
reserved,
|
||||
cannotBackground,
|
||||
needsActivateOnFGSwitch,
|
||||
backgroundAndForeground,
|
||||
dontGetFrontClicks,
|
||||
ignoreChildDiedEvents,
|
||||
is32BitCompatible,
|
||||
notHighLevelEventAware,
|
||||
onlyLocalHLEvents,
|
||||
notStationeryAware,
|
||||
dontUseTextEditServices,
|
||||
reserved,
|
||||
reserved,
|
||||
reserved,
|
||||
8192 * 1024, // preferred (maximum) memory size
|
||||
8192 * 1024 // minimum memory size
|
||||
};
|
||||
Reference in New Issue
Block a user