Ver código fonte

Added make file and a bin directory

master
Pete McNeil 4 anos atrás
pai
commit
d6668bb91e
3 arquivos alterados com 25 adições e 0 exclusões
  1. 5
    0
      .gitignore
  2. 0
    0
      bin/.gitkeep
  3. 20
    0
      makefile

+ 5
- 0
.gitignore Ver arquivo

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


+ 0
- 0
bin/.gitkeep Ver arquivo


+ 20
- 0
makefile Ver arquivo

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


Carregando…
Cancelar
Salvar