From: Ivan Maidanski Date: Wed, 22 Mar 2017 08:23:37 +0000 (+0300) Subject: New target (check-cpp) to avoid Makefile.direct parallel build issue X-Git-Tag: v8.0.0~832 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4dfe88e052d90b684e85471b13b9ea7a256afdf3;p=platform%2Fupstream%2Flibgc.git New target (check-cpp) to avoid Makefile.direct parallel build issue * Makefile.direct: Add comment about check-cpp. * Makefile.direct (test_cpp): Replace dependency on "c++" with "gc_cpp.o base_lib"; link with gc_cpp.o directly. * Makefile.direct (check-cpp): New target (same as c++-t but do not depend on c++ target and pass no arguments to test_cpp). --- diff --git a/Makefile.direct b/Makefile.direct index 5785290..6327f98 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -8,6 +8,7 @@ # check - prints porting information, then builds basic version of gc.a, # and runs some tests of collector and cords. Does not add cords or # c++ interface to gc.a +# check-cpp - runs C++ test without adding C++ (and cords) interface to gc.a # cord/de - builds dumb editor based on cords. ABI_FLAG= @@ -254,10 +255,13 @@ cords: $(CORD_OBJS) cord/cordtest $(UTILS) base_lib gc_cpp.o: $(srcdir)/gc_cpp.cc $(srcdir)/include/gc_cpp.h $(srcdir)/include/gc.h $(CXX) -c $(CXXFLAGS) $(srcdir)/gc_cpp.cc -test_cpp: $(srcdir)/tests/test_cpp.cc $(srcdir)/include/gc_cpp.h $(srcdir)/include/gc.h c++ \ - $(UTILS) - ./if_mach HP_PA HPUX $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/tests/test_cpp.cc gc.a -ldld `./threadlibs` - ./if_not_there test_cpp $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/tests/test_cpp.cc gc.a `./threadlibs` +test_cpp: $(srcdir)/tests/test_cpp.cc $(srcdir)/include/gc_cpp.h $(srcdir)/include/gc.h \ + gc_cpp.o base_lib $(UTILS) + ./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` + +check-cpp: test_cpp + ./test_cpp c++-t: c++ test_cpp ./test_cpp 1