Crossware

Table of Contents        Previous topic       Next topic       

PROGRAM MAINTENANCE UTILITY->Introducing Program Maintenence Utility

The Crossware program maintenance utility (MAKE.EXE) ensures that your program is up-to-date.  When MAKE is run, it checks to see if any of your object modules are out-of-date.  Any that are out-of-date are rebuilt and relinked to create an up-to-date program file.

This program maintenance utility is not required if you are building your programs from within the Embedded Development Studio - the Embedded Development Studio has it's own integrated MAKE utility.  However, the Embedded Development Studio will generate a makefile which is compatible with this external program maintenance utility.  This makefile is automatically produced whenever you create a project and will be given the name of your project with a .XMK extension.  You should not modify this makefile since it is used by the Embedded Development Studio to save and retrieve information about your project.   If you wish to change it, make a copy of it and modify the copied version.

The build instructions for this updating activity are contained in a description file which MAKE reads to determine the actions that it should take.  The default description filename is MAKEFILE.

A description file consists of a series of statements:
    

    
where    [/options] is a list (separated by spaces) of options,
[macrodefinitions] is a list (separated by spaces) of macro definitions
and    [targets] is a list (separated by spaces) of target objects to rebuild.

If no targets are specified then, unless the /A option is used, only the first target in the description file is built.  (Note that for makefiles created by the Embedded Development Studio. The first target in the description file is the final output file.  The /A option does therefore not need to be used.