makefile 339 B

1234567891011121314
  1. all:wsserver json_serialize mysql_connect
  2. wsserver:wsserver.cc
  3. g++ -o $@ $^ -std=c++11 -lpthread -lboost_system
  4. json_serialize:json_serialize.cc
  5. g++ -o $@ $^ -std=c++11 -ljsoncpp
  6. mysql_connect:mysql_connect.cc
  7. g++ -o $@ $^ -std=c++11 -lmysqlclient -L/usr/lib64/mysql/
  8. .PHONY:clean
  9. clean:
  10. rm -f wsserver json_serialize mysql_connect