Hi Guys, long time no see, im wondering if VBT can let out his secret on SBL? i just have no idea what to do/where to start.

well i cant seem to compile under Win XP (yeah new computer :D :D :D :D :D)

i need to :rtfm


Staff member
I have no secrets to give. I made nothing special, I took thet latest GCC compiler modified some SBL files then everything were successfully compiled :) all lib with sources and naturally my sources.

I can only make a simple sample prog, I had moved my pic viewer from SGL to SBL before the end of the contest. I have to make some tidying into the code source and move some object files to a common folder. If I have the time I'll do that before the end of the week, I'm on holidays :D if I don't have the time I'll do that on the next 3 weeks I have to take before the end of the year :D :D :banana


Staff member
here it is :


#  SEGA SATURN Graphic library make file for GNU

# macro

CC = sh-coff-gcc

AS = gasm

LD = sh-coff-ld

RM = rm

CONV = sh-coff-objcopy

# directory

SGLDIR = /saturn/dev/saturn



CMNDIR = ../common

####OBJECTS = ./saturn/obj

OBJECTS = ./objects

# option


#CCFLAGS = -m2 -O4 -c -I. -I./cpu

#CCFLAGS = -m2 -O3 -fomit-frame-pointer -c -I. -I./cpu -IH:/saturn/SBL6/SEGASMP/PER/SMPCLIB 

CCFLAGS = -m2 -O3 -fomit-frame-pointer -Wall -c -IH:/saturn/SBL6/SEGASMP/PER/SMPCLIB -I. -I./cpu

# -m2 must be specified in LDFLAGS so the linker will search the SH2 lib dirs

# Specify path of libsgl.a by using "-L" option

LDFLAGS = -m2 -L$(SGLLDR) -Xlinker -T$(LDFILE) -Xlinker -Map \

     -Xlinker $(MPFILE) -Xlinker -e -Xlinker START -nostartfiles


# source_program

include $(OBJECTS)

TARGET  = root/sl.coff

TARGET1 = root/sl.bin

LDFILE = ./$(TARGET:.coff=.lnk)

MPFILE  = $(

MAKEFILE = Makefile

all: $(TARGET) $(TARGET1)

$(OBJS) $(LIBS) 

# Use gcc to link so it will automagically find correct libs directory


	$(CC) $(LDFLAGS) $(SYSOBJS) $(OBJS) $(LIBS) -o $@


	$(CONV) -O binary $(TARGET) $(TARGET1)

# suffix



	$(CC) $< $(DFLAGS) $(CCFLAGS) -o $@


	$(RM) $(OBJS) $(TARGET:.coff=.*)