Setup GNUC from Kpit.

How to setup the new GNUC from Kpit:

Make sure you download the COFF package.

Extract all files and setup it at the desired location.

Install the libraries (SGL or SBL) in separated paths.

This is my GNU_SH_coff.bat - edit it to your path settings.

Code:
@Echo Off

Set PATH=F:\DEVELO~1\SH\Sh-coff\bin;F:\DEVELO~1\SH\OtherU~1;%PATH%

SET INFOPATH=F:\DEVELO~1\SH\Sh-coff\INFO

SET C_INCLUDE_PATH=F:\DEVELO~1\SH\Sh-coff\include;F:\DEVELO~1\SH\Sh-coff\SGL\inc

SET CPLUS_INCLUDE_PATH=F:\DEVELO~1\SH\Sh-coff\include\cxx;F:\DEVELO~1\SH\Sh-coff\include;F:\DEVELO~1\SH\Sh-coff\SGL\inc

Set MAKE_MODE=unix

Cmd "cd\" /k

I have the distribution at F:\Develo~1\SH\Sh-coff

SGL(not SBL6) is installed in F:\Develo~1\SH\Sh-coff\SGL

Run GNU_SH_coff.bat to enter the compiler env.

makefiles need some changes:

The base SGL Makefile starts like this:

Code:
#

#  SEGA SATURN Graphic library make file for GNU

# macro

CC = gcc

LD = ld

RM = deltree

CONV = objcopy

change the names so that:

Code:
# macro

CC = sh-coff-gcc

LD = sh-coff-ld

RM = rm

CONV = sh-coff-objcopy

(since WinXP has no deltree binary, Kpit's has rm installed on the Other Utilities section, and we use that.)

Stuff should work now. Any doubts go here...
 
Sorry TakaIsSilly, I think I saw that somewhere but I was looking for something really hard to configure(specific files to copy for instance), anyway thanks a lot
biggrin.gif
biggrin.gif


I won't have to loose time on that
biggrin.gif
 
Back
Top