aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-03-09 13:52:05 +0000
committerbloodstalker <thabogre@gmail.com>2017-03-09 13:52:05 +0000
commit326c63923864cc85df944273ce918a5ae72f9d9f (patch)
tree651bd09f2b43ba5ee657b274456731aec18bca34
parentfixed a couple of log issues. now the log file is useful. (diff)
downloadmutator-326c63923864cc85df944273ce918a5ae72f9d9f.tar.gz
mutator-326c63923864cc85df944273ce918a5ae72f9d9f.zip
now can builds the deamon,client and server too
-rw-r--r--makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/makefile b/makefile
index ac1bbb5..8a5cc21 100644
--- a/makefile
+++ b/makefile
@@ -4,6 +4,7 @@ include macros.mk
#######################################VARS####################################
CXX?=clang++
+CC?=clang
LLVM_CONF?=llvm-config
BUILD_MODE?=COV_NO_CLANG_1Z
SHELL:=/bin/bash
@@ -84,13 +85,16 @@ LD_FLAGS+=$(EXTRA_LD_FLAGS)
TARGET0=mutator-lvl0
TARGET1=mutator-lvl1
TARGET2=mutator-lvl2
+TARGETC=mutatorclient
+TARGETD=mutatord
+TARGETS=mutatorserver
######################################RULES####################################
.DEFAULT: all
.PHONY:all clean install help $(TARGET0) $(TARGET1) $(TARGET2)
-all: $(TARGET0) $(TARGET1) $(TARGET2)
+all: $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETC) $(TARGETD) $(TARGETS)
.cpp.o:
$(CXX) $(CXX_FLAGS) -c $< -o $@
@@ -106,10 +110,20 @@ $(TARGET2): $(TARGET2).o mutator_aux.o
$(TARGET0): $(TARGET0).o mutator_aux.o
$(CXX) $^ $(LD_FLAGS) -o $@
+$(TARGETC):
+ $(MAKE) -C daemon mutatorclient
+
+$(TARGETD):
+ $(MAKE) -C daemon mutatord
+
+$(TARGETS):
+ $(MAKE) -C daemon mutatorserver
+
clean:
rm -f *.o *~ $(TARGET0) $(TARGET1) $(TARGET2)
$(MAKE) -C tinyxml2 clean
$(MAKE) -C json clean
+ $(MAKE) -C daemon clean
install:
chmod +x ./mutator.sh