浏览代码

Added make file and a bin directory

master
Pete McNeil 4 年前
父节点
当前提交
d6668bb91e
共有 3 个文件被更改,包括 25 次插入0 次删除
  1. 5
    0
      .gitignore
  2. 0
    0
      bin/.gitkeep
  3. 20
    0
      makefile

+ 5
- 0
.gitignore 查看文件

@@ -0,0 +1,5 @@
bin/*
*.o
*.tar.gz
!.gitkeep


+ 0
- 0
bin/.gitkeep 查看文件


+ 20
- 0
makefile 查看文件

@@ -0,0 +1,20 @@
CXX = g++
CXXFLAGS = -Wall -O3 -pthread -static

# g++ GBUDBTool/main.cpp SNFMulti/GBUdb.cpp CodeDweller/threading.cpp -pthread -static -o gbudbtool

gbudbtool: gbudbtool.o GBUdb.o threading.o
$(CXX) $(CXXFLAGS) gbudbtool.o GBUdb.o threading.o -o bin/gbudbtool

gbudbtool.o: GBUDBTool/main.cpp SNFMulti/GBUdb.hpp SNFMulti/GBUdb.inline.hpp CodeDweller/faults.hpp
$(CXX) $(CXXFLAGS) -c GBUDBTool/main.cpp -o gbudbtool.o

GBUdb.o: SNFMulti/GBUdb.cpp SNFMulti/GBUdb.inline.hpp SNFMulti/GBUdb.cpp
$(CXX) $(CXXFLAGS) -c SNFMulti/GBUdb.cpp

threading.o: CodeDweller/threading.cpp CodeDweller/threading.hpp
$(CXX) $(CXXFLAGS) -c CodeDweller/threading.cpp

clean:
rm *.o bin/*


正在加载...
取消
保存