mirror of
https://github.com/frida/tinycc
synced 2024-11-24 16:49:44 +03:00
make test work when LIBTCC1 not defined
Make libtest depends on LIBTCC1 instead of ../libtcc1.a and define LIBTCC1 to $(TOP)/$(LIBTCC1) if LIBTCC1 is defined
This commit is contained in:
parent
c449ef2e1f
commit
eb152022a0
2
Makefile
2
Makefile
@ -331,6 +331,8 @@ tar:
|
||||
rm -rf /tmp/$(TCC-VERSION)
|
||||
|
||||
# in tests subdir
|
||||
export LIBTCC1
|
||||
|
||||
%est:
|
||||
$(MAKE) -C tests $@
|
||||
|
||||
|
@ -31,7 +31,11 @@ test1 test2 test3 test4 btest speedtest asmtest weaktest : ../tcc
|
||||
$(MAKE) -C .. $*
|
||||
|
||||
# libtcc test
|
||||
libtest: libtcc_test$(EXESUF) ../libtcc1.a
|
||||
ifdef LIBTCC1
|
||||
LIBTCC1:=$(TOP)/$(LIBTCC1)
|
||||
endif
|
||||
|
||||
libtest: libtcc_test$(EXESUF) $(LIBTCC1)
|
||||
@echo ------------ $@ ------------
|
||||
./libtcc_test$(EXESUF) lib_path=..
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user