aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-05-02 01:39:01 +0200
committerMichael Matz <matz@suse.de>2017-05-02 03:14:05 +0200
commitd4878985e85c01888c917a2ebcb5c533961fe53b (patch)
tree9ac618948e3848518ecccadbc4384dade00b0223 /Makefile
parent149678e88836fa3e0c9640e2b56204205fe3eeb3 (diff)
downloadtinycc-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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 28193a5..22e775c 100644
--- a/Makefile
+++ b/Makefile
@@ -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))