From: Ivan Maidanski Date: Thu, 16 Mar 2017 07:53:28 +0000 (+0300) Subject: Run test_cpp only if requested (Makefile.direct) X-Git-Tag: v7.6.2~221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65b20293409628c2b74574334b398f6e6914459c;p=gc Run test_cpp only if requested (Makefile.direct) * Makefile.direct (c++-t): Add dependency on test_cpp target. * Makefile.direct (c++): Remove dependency on test_cpp target; do not execute test_cpp. --- diff --git a/Makefile.direct b/Makefile.direct index 8b55702a..109838d5 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -259,13 +259,13 @@ test_cpp: $(srcdir)/tests/test_cpp.cc $(srcdir)/include/gc_cpp.h gc_cpp.o $(srcd ./if_mach HP_PA HPUX $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/tests/test_cpp.cc gc_cpp.o gc.a -ldld `./threadlibs` ./if_not_there test_cpp $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/tests/test_cpp.cc gc_cpp.o gc.a `./threadlibs` -c++-t: c++ +c++-t: c++ test_cpp ./test_cpp 1 c++-nt: c++ @echo "Use ./test_cpp 1 to test the leak library" -c++: gc_cpp.o $(srcdir)/include/gc_cpp.h base_lib test_cpp +c++: gc_cpp.o $(srcdir)/include/gc_cpp.h base_lib rm -f dont_ar_4 ./if_mach SPARC SOLARIS touch dont_ar_4 ./if_mach SPARC SOLARIS $(AR) rus gc.a gc_cpp.o @@ -273,7 +273,6 @@ c++: gc_cpp.o $(srcdir)/include/gc_cpp.h base_lib test_cpp ./if_mach M68K AMIGA $(AR) -vrus gc.a gc_cpp.o ./if_not_there dont_ar_4 $(AR) ru gc.a gc_cpp.o ./if_not_there dont_ar_4 $(RANLIB) gc.a || cat /dev/null - ./test_cpp 1 echo > c++ dyn_load_sunos53.o: dyn_load.c