diff options
| author | Michael Matz <matz@suse.de> | 2017-05-02 01:39:01 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2017-05-02 03:14:05 +0200 |
| commit | d4878985e85c01888c917a2ebcb5c533961fe53b (patch) | |
| tree | 9ac618948e3848518ecccadbc4384dade00b0223 | |
| parent | 149678e88836fa3e0c9640e2b56204205fe3eeb3 (diff) | |
| download | tinycc-d4878985e85c01888c917a2ebcb5c533961fe53b.tar.gz tinycc-d4878985e85c01888c917a2ebcb5c533961fe53b.tar.bz2 | |
Rebuild cross compilers when sources change
ONE_SOURCE=yes cross-compilers currently only depend on tcc.c, which
itself has no further deps. So e.g. changing tccgen.c or tcctok.h
don't automatically rebuild cross compilers. Let's go over
the intermediate $(X)tcc.o file which automatically depends on
LIBTCC_INC, which are all relevant source files.
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -177,7 +177,7 @@ LIBTCC_SRC = $(filter-out tcc.c tcctools.c arm-asm.c,$(filter %.c,$($T_FILES))) ifeq ($(ONE_SOURCE),yes) LIBTCC_OBJ = $(X)libtcc.o LIBTCC_INC = $($T_FILES) -TCC_FILES = tcc.c +TCC_FILES = $(X)tcc.o $(X)libtcc.o $T-tcc$(EXESUF) : DEFINES += -DONE_SOURCE else LIBTCC_OBJ = $(patsubst %.c,$(X)%.o,$(LIBTCC_SRC)) |
