Renesas 70 Network Card User Manual


 
Chapter 6 Using Configurator
- 132 -
6.3 Editing makefile
Here you edit makefile the configurator generated, and set compilation options, libraries, and so on. The proce-
dure for setting them is given below.
1. NC308WA command options
You define command options of the C compiler in "CFLAGS". Be sure to define the "-c" option.
2. AS308 command options
You define command options of the assembler in "ASFLAGS".
3. LN308 command options
You define command options of the linker in "LDFLAGS". There are no particular options you need to
specify.
4. Specifying libraries
You define libraries in "LIBS".
The configurator picks up necessary libraries from the configuration file and from the current directory,
and defines them in 'LIBS". Either add or delete libraries when necessary.
If you create the own makefile for MR308 system, be sure to describe the following 4 items in the makefile.
1. MR308 Library Specifications
you must specify libraries mr308.lib and c308mr.lib.
2. Assemble Option Specifications
Make sure to specify assemble option "-F" when assembling the source file, described in the assemble
language, which issues the service call.
3. Process Before Linking
Before executing a link, make sure to execute the following two processes, in the order as are listed.
1. mr308tbl
2. as308 mrtable.a30
MR308 comes equipped with the mr308tbl utility. Execute it in the directory where Configurator
(cfg308) executes. If that is not the same directory where the service call file (XXX.mrc) and the r30
file are output by C Compiler or Assembler, you need to specify the directory at parameters of
mr308tbl as following. .
Ex) mr308tbl outputdir
If you use Service call Issue Function on PD308, you need to add $(LIB308) at parameter of mr308tbl.
Once mr308tbl is executed, the mrtable.a30 file will be created. After these two processes are com-
pleted, execute the link including the mrtable.r30 file.