I tried a similar approach but am getting simulation errors. Can you let me know what do your get_lib_names.tcl and Makefile look like?