From 326c63923864cc85df944273ce918a5ae72f9d9f Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 9 Mar 2017 17:22:05 +0330 Subject: now can builds the deamon,client and server too --- makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3