瀏覽代碼

Beginnings of setting up toolchain

master
Pete McNeil 5 年之前
父節點
當前提交
7e01cd5c44
共有 6 個檔案被更改,包括 48 行新增4 行删除
  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 查看文件

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


+ 6
- 0
.gitmodules 查看文件

@@ -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 查看文件

@@ -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 查看文件

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



Loading…
取消
儲存