
mkcf is a tool to create / update the configuration file userprefs.h for
an application.

If you are not using the userprefs.h / userprefs.c for defining, reading and
saving the user preferences variables of your application this tool will
not help you.

If you take a look to a configuration file, it seems to be complicated
and it is. Adding a variable requires modifications at manyg places. But 
fortunately, this can be mechanically done and mkcf is intented for that.
Mkcf reads the list of user preferences variables in the struct _UserPrefs
and create the code to get the address of the variable
and a table ConfigDescTable confDesc to let functions in userpref.c to 
take care of the varaibles.
 

Two cases :
  1- new project
  2- modify a project
  

1 - New project :
   run: mkcf -n
   This create a file userprefs.h in which you have to add your project
   user preferences variables. 
   Just add your variables

2 - add new variable to a project
    Just add you variables.


How To add a new variable:
     1 - add the variable at the end of struct _UserPrefs .
           Do not forget to put a comment.
       2 - If you need a default value different of 0,
           do an assignation for this variable in
           the function up_init_defaults(UserPrefs *up).
       3 - run mkcf : mkcf userprefs.h
           it will do the hard job for you. 
           This step need to be done once after adding your variables
 
