Add a dependency for a PROGS and TCCLIBS to a Makefile

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.
master
seyko 2015-03-05 16:39:25 +03:00
parent 44c6e992bd
commit 4b92dbf923
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ endif
all: $(PROGS) $(TCCLIBS) $(TCCDOCS)
$(PROGS) $(TCCLIBS): *.c *.h
# Host Tiny C Compiler
tcc$(EXESUF): tcc.o $(LIBTCC)
$(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC)