add wildcards to makefile for sources

Makefile.am didn't change as modules were added
added wildcards so that all the files in 2d/ are used as sources