
(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.
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.
TASK4 = <- list of the object filenames which constitute the Window
task.
TASK5 = <- list of the object filenames which constitute the High-Level
task.
* The bottom of makefile
#------------------------------------------------------------------------------
# .O and .C dependency block.
#------------------------------------------------------------------------------
<- relationship of dependence between files.
#------------------------------------------------------------------------------
# End of .O and .C dependency block.
#------------------------------------------------------------------------------
In this case, modify makefile as follows.
#------------------------------------------------------------------------------
# Task definition block. Modify here for your application.
#------------------------------------------------------------------------------
TASK1 = main.o sub1.o sub2.o
TASK2 = comm.o
TASK3 = alarm.o alm_sub.o
TASK4 =
TASK5 =