Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 80 -
(3) Editing the source files.
Make the source files ( *.c and *.h files ) of the application program in
the working directory. Use an arbitrary text editor to edit the files as
same as editing the ordinary MS-DOS application. You may name the file as
you like. Here, we assume that the following source files are made.
Main task main.c
sub1.c
sub2.c
Alarm task alarm.c
alm_sub.c
Communication task comm.c
Common header file prog1.h
(4) Modifying MAKEFILE to fit to user application.
Modify the following parts of makefile.
* The top part of makefile
#------------------------------------------------------------------------------
# Task definition block. Modify here for your application.
#------------------------------------------------------------------------------
TASK1 = <- list of the object filenames which constitute the Main
task.
TASK2 = <- list of the object filenames which constitute the
Communication task.
TASK3 = <- list of the object filenames which constitute the Alarm
task.
* The bottom of makefile
#------------------------------------------------------------------------------
# .OBJ and .C dependency block.
#------------------------------------------------------------------------------
<- relationship of dependence between files.
#------------------------------------------------------------------------------
# End of .OBJ and .C dependency block.
#------------------------------------------------------------------------------
Modify concretely as follows.
#------------------------------------------------------------------------------
# Task definition block. Modify here for your application.
#------------------------------------------------------------------------------
TASK1 = main.obj sub1.obj sub2.obj
TASK2 = comm.obj
TASK3 = alram.obj alm_sub.obj