Table of Contents

Template Makefiles

The library contains a directory makefiles which contains the template makefile. This is the makefile you can copy over to any new project. Things to note are as follows:

project

The project name will be the final name of the output file with a ".s19" extension. This file is the file that is downloaded into the MRM.

# 1. OUTPUT NAME
project = test

mrmcobj

These are the names of the object files to link together. There can be any number of seperate files that are to be linked together.

# 2. NAME OF INDIVIDUAL C/C++ FILES
mrmcobj = test.o

GCCHOME

This will be where to find the gcc libraries. Usually if your Motorobots installation is installed in root; i.e., "/gcc-m68k", then you won't need to add this.

# FIRST TIME SETUP MAY HAVE TO CHANGE THE BELOW VALUES 
# 1. if your gcc is installed elsewhere (mine in root).
GCCHOME=

HOME

This is your home directory when you enter cygwin. Mine is usually "derek" located oddly enough under home.

# for some reason on mine system I need to change HOME  now?
HOME=c:/cygwin/home/derek

oolib

this is the directory to find the OOMRM library.

oolib=$(HOME)/oomrm/lib/liboomrm.a

ld

this is the directory to find the library that came with the MRM.

ld=$(HOME)/oomrm/lib/startup/mrm.ld