GEL = GNU Embedded Libs

GEL is the GNU embedded library for use with the 68hc11/68hc12
port of the gcc C compiler.

Most of the GEL examples are for the 6811, but some of the
examples work with the 6812.

This paper explains how I set up GEL on my computer for use
with the 68hc12 (the Dragon12 hcs12 board from www.evbplus.com).

Even though we're setting our target board (presumably this
is used to build the libs), the example programs assume a
lot about the target environment that may not apply to your
particular board.

I got GEL v1.4.2 and installed it to: 

c:\usr\gel

In /config/board.def, I set my default board:

TARGET_BOARD=m68hc12-axcmd12

I am using the axcmd12 board definition, which has defaults that 
are good enough for the hcs12.

Before launching make you should make sure the GNU Binutils and 
Gcc executables are in your path. 

c:\usr\bin   (this is where I installed gcc)

Edit file Makefile is main dir. Set these 2 items near top:

GEL_BASEDIR=/usr/gel
SRCDIR=$(GEL_BASEDIR)

Edit config/flags.defs, make the 68hc12 the default processor:

CPU=m68hc12

also in config/flags.defs, take off the -g option from Debug
DEBUG=

also in config/flags.defs, give it the most optimization:
OPT=-O3 -fomit-frame-pointer

Now edit config/make.defs (set basedir and take out question marks):
GEL_BASEDIR=/usr/gel
MAKE_RULES_DIR= $(GEL_BASEDIR)/config
MAKE_FLAGS_DIR= $(GEL_BASEDIR)/config
MAKE_VAR_DIR  = $(GEL_BASEDIR)/config
MAKE_BOARD_DIR= $(GEL_BASEDIR)/config


Now make sure you have the Ming "Minimal SYStem", Version 1.0.8:

ftp://m68hc11.serveftp.org/pub/win32/MSYS-1.0.8-i686-2002.06.18-1.exe

I installed the Minimal System here:
C:\usr\msys\1.0

Add this to your path:
C:\usr\msys\1.0\bin


Once MSYS is installed, you can do a make on GEL: 

          cd \usr\gel
	  make

    Source: geocities.com/englere_geo