瀏覽代碼

added make file

master
Pete McNeil 4 年之前
父節點
當前提交
7c1cf57bc0
共有 1 個文件被更改,包括 115 次插入0 次删除
  1. 115
    0
      makefile

+ 115
- 0
makefile 查看文件

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

target: main.o \
networking.o \
timing.o \
threading.o \
configuration.o \
snf_xci.o \
snf_sync.o \
snf_saccades.o \
snf_engine.o \
SNFMulti.o \
GBUdb.o \
FilterChain.o \
snfCFGmgr.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

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

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

# CodeDweller...

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

# SNFMulti...

SNFMulti.o: SNFMulti/SNFMulti.cpp \
SNFMulti/SNFMulti.hpp \
SNFMulti/GBUdb.hpp \
SNFMulti/FilterChain.hpp \
SNFMulti/snf_engine.hpp \
SNFMulti/snf_match.h \
SNFMulti/snfCFGmgr.hpp \
SNFMulti/snfGBUdbmgr.hpp \
SNFMulti/snfLOGmgr.hpp \
SNFMulti/snfNETmgr.hpp \
SNFMulti/snfXCImgr.hpp \
SNFMulti/snf_saccades.hpp \
CodeDweller/timing.hpp \
CodeDweller/faults.hpp \
CodeDweller/threading.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/SNFMulti.cpp

GBUdb.o: SNFMulti/GBUdb.cpp SNFMulti/GBUdb.hpp SNFMulti/GBUdb.inline.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/GBUdb.cpp

FilterChain.o: SNFMulti/FilterChain.cpp SNFMulti/FilterChain.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/FilterChain.cpp

snf_engine.o: SNFMulti/snf_engine.cpp SNFMulti/snf_engine.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/snf_engine.cpp

snfCFGmgr.o: SNFMulti/snfCFGmgr.cpp SNFMulti/snfCFGmgr.hpp SNFMulti/snfCFGmgr.inline.hpp SNFMulti/snf_HeaderFinder.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/snfCFGmgr.cpp

snf_HeaderFinder.o: SNFMulti/snf_HeaderFinder.cpp \
SNFMulti/snf_HeaderFinder.hpp \
SNFMulti/snf_HeaderFinder.inline.hpp \
SNFMulti/snfLOGmgr.hpp \
SNFMulti/snfCFGmgr.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/snf_HeaderFinder.cpp

snfGBUdbmgr.o: SNFMulti/snfGBUdbmgr.cpp SNFMulti/snfGBUdbmgr.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/snfGBUdbmgr.cpp

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
$(CXX) $(CXXFLAGS) -c SNFMulti/snfNETmgr.cpp

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

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

snf_saccades.o: SNFMulti/snf_saccades.cpp SNFMulti/snf_saccades.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/snf_saccades.cpp

snf_sync.o: SNFMulti/snf_sync.cpp \
SNFMulti/snf_sync.hpp \
SNFMulti/GBUdb.hpp \
CodeDweller/networking.hpp \
CodeDweller/configuration.hpp
$(CXX) $(CXXFLAGS) -c SNFMulti/snf_sync.cpp

# Housekeeping...

clean:
rm *.o bin/* || true



Loading…
取消
儲存