modify makefile to use wildcard function