Here's the link to an example makefile that creates a library.
Using wildcard
or filter-out
can be very useful when you have a bunch of files with the same pattern. Using these will prevent having to type individual filenames, which is extrememly tedious.