Bladeren bron

Beginnings of setting up toolchain

master
Pete McNeil 4 jaren geleden
bovenliggende
commit
7e01cd5c44
6 gewijzigde bestanden met toevoegingen van 48 en 4 verwijderingen
  1. 3
    0
      .gitignore
  2. 6
    0
      .gitmodules
  3. 1
    0
      CodeDweller
  4. 4
    4
      SNFClient/main.cpp
  5. 1
    0
      SNFMulti
  6. 33
    0
      makefile

+ 3
- 0
.gitignore Bestand weergeven

@@ -0,0 +1,3 @@
bin/*
*.o


+ 6
- 0
.gitmodules Bestand weergeven

@@ -0,0 +1,6 @@
[submodule "CodeDweller"]
path = CodeDweller
url = gitea@code.microneil.com:madscientist/CodeDweller.git
[submodule "SNFMulti"]
path = SNFMulti
url = gitea@code.microneil.com:madscientist/SNFMulti.git

+ 1
- 0
CodeDweller

@@ -0,0 +1 @@
Subproject commit 57459a5d9aea2a42de064a05998d5f48f7614220

+ 4
- 4
SNFClient/main.cpp Bestand weergeven

@@ -24,10 +24,10 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "timing.hpp"
#include "networking.hpp"
#include "threading.hpp"
#include "snf_xci.hpp"
#include "../CodeDweller/timing.hpp"
#include "../CodeDweller/networking.hpp"
#include "../CodeDweller/threading.hpp"
#include "../SNFMulti/snf_xci.hpp"
using namespace std; // Introduce standard namespace.

+ 1
- 0
SNFMulti

@@ -0,0 +1 @@
Subproject commit 694590d05f627b40d7c1756c5050ecb53c14d595

+ 33
- 0
makefile Bestand weergeven

@@ -0,0 +1,33 @@
CXX = g++
CXXFLAGS = -Wall -O3

target: main.o networking.o timing.o threading.o configuration.o snf_xci.o main.o
$(CXX) $(CXXFLAGS) main.o networking.o timing.o threading.o configuration.o snf_xci.o SNFClient/main.cpp -o bin/SNFClient -static -pthread

main.o: SNFClient/main.cpp \
CodeDweller/timing.hpp \
CodeDweller/networking.hpp \
CodeDweller/networking.inline.hpp \
CodeDweller/threading.hpp \
SNFMulti/snf_xci.hpp
$(CXX) $(CXXFLAGS) -c SNFClient/main.cpp

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

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

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

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

snf_xci.o: SNFMulti/snf_xci.cpp SNFMulti/snf_xci.hpp CodeDweller/configuration.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/snf_xci.cpp

clean:
rm *.o bin/*



Laden…
Annuleren
Opslaan