瀏覽代碼

make file that works

master
Pete McNeil 4 年之前
父節點
當前提交
55cab81775
共有 2 個檔案被更改,包括 45 行新增7 行删除
  1. 1
    1
      .gitignore
  2. 44
    6
      makefile

+ 1
- 1
.gitignore 查看文件

@@ -1,3 +1,3 @@
# ignore the temporary stuff like objects etc...
.o
*.o


+ 44
- 6
makefile 查看文件

@@ -2,10 +2,13 @@ CXX = g++
CXXFLAGS = -Wall -O3 -pthread

target: main.o \
base64codec.o \
configuration.o \
mangler.o \
networking.o \
timing.o \
threading.o \
configuration.o \
snf_HeaderFinder.o \
snf_xci.o \
snf_sync.o \
snf_saccades.o \
@@ -14,10 +17,31 @@ target: main.o \
GBUdb.o \
FilterChain.o \
snfCFGmgr.o \
snfGBUdbmgr.o \
snfLOGmgr.o \
snfNETmgr.o \
snfXCImgr.o
$(CXX) $(CXXFLAGS) main.o networking.o timing.o threading.o configuration.o snf_xci.o -o bin/SNFServer
$(CXX) $(CXXFLAGS) main.o \
base64codec.o \
configuration.o \
mangler.o \
networking.o \
timing.o \
threading.o \
snf_HeaderFinder.o \
snf_xci.o \
snf_sync.o \
snf_saccades.o \
snf_engine.o \
SNFMulti.o \
GBUdb.o \
FilterChain.o \
snfCFGmgr.o \
snfGBUdbmgr.o \
snfLOGmgr.o \
snfNETmgr.o \
snfXCImgr.o \
-o bin/SNFServer

static: main.o networking.o timing.o threading.o configuration.o snf_xci.o main.o
$(CXX) $(CXXFLAGS) -static main.o networking.o timing.o threading.o configuration.o snf_xci.o -o bin/SNFServer
@@ -32,6 +56,15 @@ main.o: SNFServer/main.cpp \

# CodeDweller...

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

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

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

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

@@ -41,9 +74,6 @@ timing.o: CodeDweller/timing.cpp CodeDweller/timing.hpp
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

# SNFMulti...

SNFMulti.o: SNFMulti/SNFMulti.cpp \
@@ -88,7 +118,15 @@ snfGBUdbmgr.o: SNFMulti/snfGBUdbmgr.cpp SNFMulti/snfGBUdbmgr.hpp
snfLOGmgr.o: SNFMulti/snfLOGmgr.cpp SNFMulti/snfLOGmgr.hpp SNFMulti/snfLOGmgr.inline.hpp SNFMulti/snf_match.h
$(CXX) $(CXXFLAGS) -c SNFMulti/snfLOGmgr.cpp

snfNETmgr.o: SNFMulti/snfNETmgr.cpp SNFMulti/snfNETmgr.hpp
snfNETmgr.o: SNFMulti/snfNETmgr.cpp \
SNFMulti/snfNETmgr.hpp \
SNFMulti/snfCFGmgr.hpp \
SNFMulti/snfLOGmgr.hpp \
SNFMulti/snfGBUdbmgr.hpp \
CodeDweller/networking.hpp \
CodeDweller/timing.hpp \
CodeDweller/threading.hpp \
CodeDweller/mangler.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/snfNETmgr.cpp

snfXCImgr.o: SNFMulti/snfXCImgr.cpp SNFMulti/snfXCImgr.hpp SNFMulti/snf_xci.hpp

Loading…
取消
儲存