Actually use the c++ linker when linking c++ objects files make-cleanup
authorDamiano Boppart <damiano.boppart@pep.security>
Sat, 22 Dec 2018 01:53:50 +0100
branchmake-cleanup
changeset 3205eb1093486582
parent 3204 fa2e7ead0f4e
child 3206 48f8fec4b7d1
Actually use the c++ linker when linking c++ objects files
test/Makefile
     1.1 --- a/test/Makefile	Sat Dec 22 01:34:30 2018 +0100
     1.2 +++ b/test/Makefile	Sat Dec 22 01:53:50 2018 +0100
     1.3 @@ -7,7 +7,7 @@
     1.4  
     1.5  include ../Makefile.conf
     1.6  
     1.7 -VPATH=src
     1.8 +#VPATH=src
     1.9  
    1.10  # User's without python3 will skip the generated parts of the test suite. That's OK.
    1.11  PY_ENV:=$(shell command -v python3 2> /dev/null)
    1.12 @@ -69,8 +69,7 @@
    1.13  	$(CXX) -MM $(CPPFLAGS) $(CXXFLAGS) $< | sed -e 's,\($*\)\.o[ :]*,\1.o $@: ,g' > $@
    1.14  
    1.15  $(TARGET): $(OBJS)
    1.16 -# This should actually be done with a built-in rule
    1.17 -#	$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
    1.18 +	$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
    1.19  
    1.20  .PHONY: suitemaker
    1.21  suitemaker:
    1.22 @@ -98,7 +97,7 @@
    1.23  .PHONY: clean
    1.24  clean:
    1.25  	$(RM) $(TARGET) $(TARGET).o $(OBJS) $(notdir $(basename $(OBJS))) $(DEPS)
    1.26 -	$(RM) $(HERE)/*Tests msg_2.0.asc
    1.27 +	$(RM) $(HERE)/*Tests msg_2.0.asc $(HERE)/pEp_test_home
    1.28  
    1.29  # If only the goal 'clean' is given, do not generate and include the '%.d' files.¬
    1.30  ifneq ($(MAKECMDGOALS),clean)