makefile 456 B

123456789101112
  1. ifeq ($(GPP),)
  2. GPP=g++
  3. endif
  4. INC=-I ./.. -I../.. -I ../../googletest/googletest/include -I /usr/include/qt4 -I /usr/include/qt4/QtCore
  5. LIB=-L ../../googletest/lib -l gtest -pthread -lQtCore ../thirdparty/libbson/lib/libbson-1.0.a # for gtest and qt test
  6. xtest:
  7. $(GPP) -o $@ -g test.cpp -std=c++11 -DXPACK_SUPPORT_CHAR_ARRAY -DXPACK_SUPPORT_QT $(INC) $(LIB) $(XFLAG) -Wall -Wextra
  8. @-valgrind --tool=memcheck --leak-check=full ./$@
  9. #@- ./$@
  10. @-rm $@