Skip to content

Commit

Permalink
Add tools and fix bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinuxroot committed Nov 23, 2016
1 parent 9e09c97 commit 8dfce0a
Show file tree
Hide file tree
Showing 186 changed files with 5,577 additions and 4,814 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Expand Up @@ -21,3 +21,9 @@ msvc/**/Release
target/bin/linux/x64/Release/*
target/lib/linux/x64/Release/*
target/build/linux/x64/Release/*

*.config
*.creator
*.creator.user
*.files
*.includes
134 changes: 8 additions & 126 deletions Makefile
@@ -1,129 +1,11 @@
SRC = src/main
INCLUDE = include/main
TARGET = target
BUILD = $(TARGET)/build
CC = gcc
CXX = g++

CXXFLAGS = -std=c++11 -I$(INCLUDE) -DOS_LINUX -g
LDFALGS = -lpthread -Ldeps/meshy/target -lmeshy

COMMON_OBJECTS = \
$(BUILD)/DataPackage.o \
$(BUILD)/OutputCollector.o \
$(BUILD)/BoltExecutor.o \
$(BUILD)/BoltOutputCollector.o \
$(BUILD)/CommandDispatcher.o \
$(BUILD)/MessageLoop.o \
$(BUILD)/NimbusCommander.o \
$(BUILD)/SupervisorCommander.o \
$(BUILD)/SpoutExecutor.o \
$(BUILD)/SpoutOutputCollector.o \
$(BUILD)/SimpleTopology.o \
$(BUILD)/TopologyBuilder.o \

NIMBUS_OBJECTS = $(BUILD)/NimbusLauncher.o

SUPERVISOR_OBJECTS = $(BUILD)/SupervisorLauncher.o

all: $(TARGET)/nimbus $(TARGET)/supervisor
all:
cd deps/meshy/target/build/linux/x64/Release;make
cd target/build/linux/x64/Release;make

clean:
rm -rf $(TARGET)/*
mkdir $(BUILD)

$(TARGET)/nimbus: $(COMMON_OBJECTS) $(NIMBUS_OBJECTS)
$(CXX) -o $@ $(COMMON_OBJECTS) $(NIMBUS_OBJECTS) $(LDFALGS)

$(TARGET)/supervisor: $(COMMON_OBJECTS) $(SUPERVISOR_OBJECTS)
$(CXX) -o $@ $(COMMON_OBJECTS) $(SUPERVISOR_OBJECTS) $(LDFALGS)

$(BUILD)/DataPackage.o: $(SRC)/hurricane/base/DataPackage.cpp \
$(INCLUDE)/hurricane/base/DataPackage.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/OutputCollector.o: $(SRC)/hurricane/base/OutputCollector.cpp \
$(INCLUDE)/hurricane/base/OutputCollector.h \
$(INCLUDE)/hurricane/topology/ITopology.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/BoltExecutor.o: $(SRC)/hurricane/bolt/BoltExecutor.cpp \
$(INCLUDE)/hurricane/bolt/BoltExecutor.h \
$(INCLUDE)/hurricane/bolt/BoltMessage.h \
$(INCLUDE)/hurricane/message/MessageLoop.h \
$(INCLUDE)/hurricane/base/OutputCollector.h \
$(INCLUDE)/hurricane/message/SupervisorCommander.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/BoltOutputCollector.o: $(SRC)/hurricane/bolt/BoltOutputCollector.cpp \
$(INCLUDE)/hurricane/bolt/BoltOutputCollector.h \
$(INCLUDE)/hurricane/bolt/BoltExecutor.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/CommandDispatcher.o: $(SRC)/hurricane/message/CommandDispatcher.cpp \
$(INCLUDE)/hurricane/message/CommandDispatcher.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/MessageLoop.o: $(SRC)/hurricane/message/MessageLoop.cpp \
$(INCLUDE)/hurricane/message/MessageLoop.h \
$(INCLUDE)/hurricane/message/Message.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/NimbusCommander.o: $(SRC)/hurricane/message/NimbusCommander.cpp \
$(INCLUDE)/hurricane/message/SupervisorCommander.h \
$(INCLUDE)/hurricane/base/ByteArray.h \
$(INCLUDE)/hurricane/base/DataPackage.h \
$(INCLUDE)/hurricane/message/Command.h \
$(INCLUDE)/hurricane/message/NimbusCommander.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/SupervisorCommander.o: $(SRC)/hurricane/message/SupervisorCommander.cpp \
$(INCLUDE)/hurricane/message/SupervisorCommander.h \
$(INCLUDE)/hurricane/base/ByteArray.h \
$(INCLUDE)/hurricane/base/DataPackage.h \
$(INCLUDE)/hurricane/message/Command.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/SpoutExecutor.o: $(SRC)/hurricane/spout/SpoutExecutor.cpp \
$(INCLUDE)/hurricane/spout/SpoutExecutor.h \
$(INCLUDE)/hurricane/base/OutputCollector.h \
$(INCLUDE)/hurricane/message/SupervisorCommander.h \
$(INCLUDE)/hurricane/spout/SpoutOutputCollector.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/SpoutOutputCollector.o: $(SRC)/hurricane/spout/SpoutOutputCollector.cpp \
$(INCLUDE)/SpoutOutputCollector.h \
$(INCLUDE)/hurricane/spout/SpoutExecutor.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/SimpleTopology.o: $(SRC)/hurricane/topology/SimpleTopology.cpp \
$(INCLUDE)/hurricane/topology/SimpleTopology.h \
$(INCLUDE)/hurricane/spout/ISpout.h \
$(INCLUDE)/hurricane/bolt/IBolt.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/TopologyBuilder.o: $(SRC)/hurricane/topology/TopologyBuilder.cpp \
$(INCLUDE)/hurricane/topology/TopologyBuilder.h \
$(INCLUDE)/hurricane/spout/ISpout.h \
$(INCLUDE)/hurricane/bolt/IBolt.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/NimbusLauncher.o: $(SRC)/hurricane/NimbusLauncher.cpp \
$(INCLUDE)/hurricane/base/NetAddress.h \
$(INCLUDE)/hurricane/base/ByteArray.h \
$(INCLUDE)/hurricane/base/DataPackage.h \
$(INCLUDE)/hurricane/message/CommandDispatcher.h \
$(INCLUDE)/hurricane/message/NimbusCommander.h \
$(INCLUDE)/hurricane/base/Node.h
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD)/SupervisorLauncher.o: $(SRC)/hurricane/SupervisorLauncher.cpp \
$(INCLUDE)/hurricane/base/NetAddress.h \
$(INCLUDE)/hurricane/base/ByteArray.h \
$(INCLUDE)/hurricane/base/DataPackage.h \
$(INCLUDE)/hurricane/base/Value.h \
$(INCLUDE)/hurricane/base/Variant.h \
$(INCLUDE)/hurricane/message/SupervisorCommander.h \
$(INCLUDE)/hurricane/message/CommandDispatcher.h
$(CXX) $(CXXFLAGS) -c -o $@ $<
cd target/build/linux/x64/Release;make clean
cd deps/meshy/target/build/linux/x64/Release;make clean

install:
cd deps/meshy/target/build/linux/x64/Release;make install
cd target/build/linux/x64/Release;make install
5 changes: 0 additions & 5 deletions deps/kake/.gitignore

This file was deleted.

0 comments on commit 8dfce0a

Please sign in to comment.