Add test Makefile that computes library dependencies