1:- dynamic ics_file/1, sokb_file/1, history_file/1, required_option/2.    2
    3history_file('name_of_history_file.txt').
    4ics_file('name_of_ics_file.txt').
    5
    6sokb_file('name_of_sokb_file.pl').
    7
    8
    9
   10
   11%%%%%%%%%%%%%%%%%%%%%%% Constant Part %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   12build_prj(Path):-
   13    findall(F,ics_file(F),ICS_files), append_path(Path,ICS_files,IcsPathFiles),
   14    translate_ics_files(IcsPathFiles,'./ics.pl'),
   15    findall(F,history_file(F),Hist_files),  append_path(Path,Hist_files,HistPathFiles),
   16    translate_histories(HistPathFiles,'./history.pl'),
   17    findall(F,sokb_file(F),Sokb_files),     append_path(Path,Sokb_files,SokbPathFiles),
   18    convert_sokb(SokbPathFiles,'./sokb.pl'),
   19    compile(sokb), compile(history), compile(ics),
   20    findall([O,V],required_option(O,V),LOptions),
   21    set_options(LOptions).
   22
   23% Default:
   24run(_):- run.
   25run_open(_):- run_no_close.
   26run_closed(_):- run