HomeForumsWhat's newResources 
 
 
SBL!!1
mrkotfw - Nov 2, 2003
   mrkotfw Nov 2, 2003 
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 )

i need to :rtfm

   vbt Nov 3, 2003 
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 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 :banana

   mrkotfw Nov 3, 2003 
sorry, thanks for the help but do you mind posting your SBL/SGL Makefile ?

   vbt Nov 4, 2003 
here it is :

Code:
  
# # 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 SGLIDR = $(SGLDIR)/inc SGLLDR = $(SGLDIR)/lib CMNDIR = ../common ####OBJECTS = ./saturn/obj OBJECTS = ./objects # option #-mspace #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 DFLAGS = # source_program include $(OBJECTS) TARGET = root/sl.coff TARGET1 = root/sl.bin LDFILE = ./$(TARGET:.coff=.lnk) MPFILE = $(TARGET:.coff=.map) MAKEFILE = Makefile all: $(TARGET) $(TARGET1) $(OBJS) $(LIBS) # Use gcc to link so it will automagically find correct libs directory $(TARGET) : $(SYSOBJS) $(OBJS) $(MAKEFILE) $(OBJECTS) $(LDFILE) $(CC) $(LDFLAGS) $(SYSOBJS) $(OBJS) $(LIBS) -o $@ $(TARGET1) : $(SYSOBJS) $(OBJS) $(MAKEFILE) $(LDFILE) $(CONV) -O binary $(TARGET) $(TARGET1) # suffix .SUFFIXES: .asm .c.o: $(CC) $< $(DFLAGS) $(CCFLAGS) -o $@ clean: $(RM) $(OBJS) $(TARGET:.coff=.*)