Copy the sample program files to your hard disk. In this example, they were copied to the user’s home directory
Create a work directory. In this example, ecos-demo is the name of the work directory.
$ mkdir ecos-demo
$ cd ecos-demo
If you have not done so, unpack and install the pre-compiled eCos libraries.
Modify the Makefile to point to the location of the eCos install directory.
Unpack the demo sources
Go to the demo subdirectory where you unpacked the source files.
Remove all previously complied components and object files.
$ make clean
$ rm -f netecho.elf serecho.elf netecho.bin serecho.bin netech . .
$ touch srcdeps
Compile source dependencies.
Compile the Sample Program.