瀏覽代碼

makefile文件

yaozheng0922 2 月之前
父節點
當前提交
3eb8970d35
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      source/makefile

+ 12 - 0
source/makefile

@@ -0,0 +1,12 @@
+.PHONY:all
+all:gobang #test
+
+test:test.cc logger.hpp util.hpp db.hpp online.hpp room.hpp session.hpp matcher.hpp
+	g++ -o $@ $^ -std=c++11 -lmysqlclient  -L/usr/lib64/mysql/ -ljsoncpp -lpthread -lboost_system
+
+gobang:main.cc server.hpp
+	g++ -o $@ $^ -g -std=c++11 -lmysqlclient  -L/usr/lib64/mysql/ -ljsoncpp -lpthread -lboost_system
+
+.PHONY:clean
+clean:
+	rm -f gobang