Running sim() function for the models that include a ucb block will automatically
invokes the make utility to build the required shared object "simucb.so.1.0".
If the main C file (which is indicated by the block "file name" parameter) of ucb
block is changed then the make utility will be invoked before the simulation is started.
This works fine if the ucb only requires a single C file. However, if the ucb requires other
C files (or libraries) the sim() does not detect the dependencies correctly.
To illustrate the problem, consider that a ucb requires ucb.c as the main file
and also requires file1.c and file2.c (which are indicated in the Makefile).
simucb.so.1.0 will be re-built each time that ucb.c file is changed. However, if
file1.c or file2.c are changed the sim() will not build the simucb.so.1.0 eventhough the makefile
recognizes simucb.so.1.0 to be dependent on file1.c and file2.c,- The sim() will
not call the make utility in the case of changes to file1.c and file2.c.
Any suggestion to resolve this issue?