Simply assume this is all *.c and *.h files in a tcc top directory. Now a tcc compiler is recompiled if any of this files is changed.
Unified · Split
| @@ -158,6 +158,8 @@ endif · 157 unmodified lines | |||
| 158 | 158 | ||
| 159 | all: $(PROGS) $(TCCLIBS) $(TCCDOCS) | 159 | all: $(PROGS) $(TCCLIBS) $(TCCDOCS) |
| 160 | 160 | ||
| 161 | $(PROGS) $(TCCLIBS): *.c *.h | ||
| 162 | |||
| 161 | # Host Tiny C Compiler | 163 | # Host Tiny C Compiler |
| 162 | tcc$(EXESUF): tcc.o $(LIBTCC) | 164 | tcc$(EXESUF): tcc.o $(LIBTCC) |
| 163 | $(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC) | 165 | $(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC) |