makefile 367 B

123456789101112
  1. .PHONY:all
  2. all:gobang #test
  3. test:test.cc logger.hpp util.hpp db.hpp online.hpp room.hpp session.hpp matcher.hpp
  4. g++ -o $@ $^ -std=c++11 -lmysqlclient -L/usr/lib64/mysql/ -ljsoncpp -lpthread -lboost_system
  5. gobang:main.cc server.hpp
  6. g++ -o $@ $^ -g -std=c++11 -lmysqlclient -L/usr/lib64/mysql/ -ljsoncpp -lpthread -lboost_system
  7. .PHONY:clean
  8. clean:
  9. rm -f gobang