Regenerate the targets makefiles

Commit f38111d76ba127b4045e6a9899cbb753457c7384 updated these files
manually (based on older versions of them) to something not generated
by the current mktargets.py/sh, losing the compact pattern rules.
Add dependencies on the encoder libraries to the unit tests

This makes sure a "make codec_unittest" succeeds without any
prior make invocation. The usage of the encoder libraries in
the unit test was added in 6f58a0c1.
Add a dependency on the unittest in the "make test" rule

This makes sure "make test" succeeds without building anything
beforehand.
Merge pull request #125 from mstorsjo/make-deps

Add missing make dependencies for the tests