make: cross compilers exist before using them (fixes parallel make)
This commit is contained in:
parent
eb550ed23b
commit
50ff5ed790
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -144,6 +144,7 @@ TCCDOCS = tcc.1 tcc-doc.html tcc-doc.info
|
||||||
|
|
||||||
ifdef CONFIG_CROSS
|
ifdef CONFIG_CROSS
|
||||||
PROGS+=$(PROGS_CROSS)
|
PROGS+=$(PROGS_CROSS)
|
||||||
|
PROGS_CROSS_WAIT=$(PROGS_CROSS)
|
||||||
TCCLIBS+=$(LIBTCC1_CROSS)
|
TCCLIBS+=$(LIBTCC1_CROSS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -211,7 +212,7 @@ tiny_libmaker$(EXESUF): win32/tools/tiny_libmaker.c
|
||||||
# TinyCC runtime libraries
|
# TinyCC runtime libraries
|
||||||
libtcc1.a : FORCE
|
libtcc1.a : FORCE
|
||||||
@$(MAKE) -C lib native
|
@$(MAKE) -C lib native
|
||||||
lib/%/libtcc1.a : FORCE
|
lib/%/libtcc1.a : FORCE $(PROGS_CROSS_WAIT)
|
||||||
@$(MAKE) -C lib cross TARGET=$*
|
@$(MAKE) -C lib cross TARGET=$*
|
||||||
bcheck.o : lib/bcheck.c
|
bcheck.o : lib/bcheck.c
|
||||||
gcc -c $< -o $@ -O2 -Wall
|
gcc -c $< -o $@ -O2 -Wall
|
||||||
|
|
Loading…
Reference in a new issue