Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 86 -
Supplement of "makefile" format
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The format of "makefile", which is used for compiling and linking the C
Executor application, has been changed a littel at BY01-1.5.
You must use this new format "makefile" surely if you use xlink386 Ver.2.0
(or later). You can use also the older version of "makefile" used with the
C library before BY01-1.5 if you use xlink386 Ver.1.x.
The following section is the description of the new makefile format.
(1) Specifying the object files constituting each tasks.
You list the file names which constitute feach ftasks in the top part of
"makefile". This part is same as before.
TASK1 =
TASK2 =
TASK3 =
If you use no auxiliary tasks, you specify no items for "TASK2=" and "TASK3=".
[Example]
TASK1 = main1.obj display.obj # Object files which constitute the main task.
TASK2 = main2.obj # Object files which constitute the comm. task.
TASK3 = main3.obj monitor.obj # Object files which constitute the alarm task.
(2) Specifying the compiling option.
In the next part, you specify the compiling option. You define the variable
"MSCOPT". You define one of tree option spec. according to the your MS-C
version (Ver.6/7/8).
#MSCOPT = /G2 # for MS-C Ver.6
#MSCOPT = /G2 /f- # for MS-C Ver.7
#MSCOPT = /G3 /f- /Gx- # for MS-C Ver.8
[Example] In case of MS-C Ver.8.
#MSCOPT = /G2 # for MS-C Ver.6
#MSCOPT = /G2 /f- # for MS-C Ver.7
MSCOPT = /G3 /f- /Gx- # for MS-C Ver.8 Remove the comment mark (#) of this
line.