1.add %.l %.y rules
2.autodetect CPP/C source files and use CC/CXX spearately