Browse Source

Added make file and a bin directory

master
Pete McNeil 4 years ago
parent
commit
d6668bb91e
3 changed files with 25 additions and 0 deletions
  1. 5
    0
      .gitignore
  2. 0
    0
      bin/.gitkeep
  3. 20
    0
      makefile

+ 5
- 0
.gitignore View File

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


+ 0
- 0
bin/.gitkeep View File


+ 20
- 0
makefile View File

@@ -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/*


Loading…
Cancel
Save