(w)
| 58 | cc_exts = ['.c', '.C', '.cc', '.c++'] |
| 59 | |
| 60 | def treatword(w): |
| 61 | if w[:2] in cc_flags: |
| 62 | return None |
| 63 | if w[:1] == '-': |
| 64 | return w # Assume loader flag |
| 65 | head, tail = os.path.split(w) |
| 66 | base, ext = os.path.splitext(tail) |
| 67 | if ext in cc_exts: |
| 68 | tail = base + '.o' |
| 69 | w = os.path.join(head, tail) |
| 70 | return w |
| 71 | |
| 72 | def expandvars(str, vars): |
| 73 | i = 0 |