Incorporating Your Changes into the Libraries
Included in each MCore library directory is a default.bld file to help you recompile and replace the customized object modules. For example, after changing directories into one of the target library directories, do the following steps:
- Create a subdirectory objs, if it has not already been created.
- Rename or remove the file (libsys.a or crt0.o) that you wish to rebuild. It might be useful to keep the old file around as a backup.
- Run multi. It should open up on default.bld.
- Remove the unused libghs.bld from project by single clicking on it and hitting the remove button, if this has not already been done.
- Enter either the libsys or crt0 project with a double click.
- Click on build. The library should be built.
- If you rebuilt crt0.o, it should be copied from out of the objs subdirectory back into the target directory. On UNIX systems, you may, instead, create a symbolic link with ln -s objs/crt0.o.
Consult the MULTI Reference Manual on using the Builder to change options and rebuild. Options should be changed with care, as some of them are required for proper operation. For example, the default.bld project causes the preprocessor symbol EMBEDDED to be defined when compiling; this symbol is required for some modules in the libraries. Under default.bld, the subproject libsys.bld builds the libsys.a library and crt0.bld builds the startup module, crt0.o. The libghs.bld project should be ignored.
Copyright © 1999, Green Hills Software. All rights
reserved.