This also allows self hosting + testing when $(CC) is tcc.
Unified · Split
| @@ -32,10 +32,10 @@ FILTER = 2>&1 | sed 's,$(SRC)/,,g' · 31 unmodified lines | |||
| 32 | 32 | ||
| 33 | # automatically generate .expect files with gcc: | 33 | # automatically generate .expect files with gcc: |
| 34 | %.expect: %.c | 34 | %.expect: %.c |
| 35 | gcc -E -P $< >$*.expect 2>&1 | 35 | $(CC) -E -P $< >$*.expect 2>&1 |
| 36 | 36 | ||
| 37 | %.expect: %.S | 37 | %.expect: %.S |
| 38 | gcc -E -P $< >$*.expect 2>&1 | 38 | $(CC) -E -P $< >$*.expect 2>&1 |
| 39 | 39 | ||
| 40 | # tell make not to delete | 40 | # tell make not to delete |
| 41 | .PRECIOUS: %.expect | 41 | .PRECIOUS: %.expect |