Renesas REJ10J1837-0100 Network Card User Manual


 
High-performance Embedded Workshop 13. HMAKE User Guide
REJ10J1837-0100 Rev.1.00 Nov. 16, 2008
421
Special commands
There are two special commands which can be used in a description block. The "cd" command changes the current
directory and the "set" command sets an environment variable which will then be in use for the duration of the make
file execution. Both are used in the same way as the DOS equivalents.
There follows some examples of valid description blocks which use these commands:
CHANGEDIR :
cd c:\dir1\dir2
SETENV:
set VAR1=value1
set VAR2=value2
set VAR3=value3
It does not matter that CHANGEDIR and SETENV are not file names. They will be treated as files that do not exist and
so the commands will always be executed.
Sub command files
If you wish hmake to generate a sub command file for you then the command part of the description block should be
specified as follows (this replaces <commandn> above):
<command start> <<
<sub command1>,
<sub command2>,
<sub commandn>
<<<command end>
This will generate a sub command file, in the Windows
® temporary directory, which will contain the lines <sub
command1>, <sub command2> etc. This command file will be deleted once the make process has completed. The name
of the command file will be substituted for all the text between the two “<<”’s. You do not have to worry about the
name of the sub command file. This is generated by hmake.
For example:
c:\dir1\file1.obj : c:\dir1\file1.c c:\dir1\file1.h
gcc @”<<
-c -o c:\dir1\file1.obj c:\dir1\file1.c
<<”
If the sub command file generated has the name “c:\temp\hmk111.cmd” then the following would be executed by
hmake (assuming c:\dir1\file1.obj is out of date):
gcc @”c:\temp\hmk111.cmd”
The command file (c:\temp\hmk111.cmd) would contain:
-c -o c:\dir1\file1.obj c:\dir1\file1.c
It is possible to include more than one command in the description block and to use combinations of the standard, and
sub command file commands.