aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-03-16 21:42:07 +0000
committerbloodstalker <thabogre@gmail.com>2017-03-16 21:42:07 +0000
commit0b8ad545cb59cac27e7a4ec033126bae2ea41040 (patch)
tree712074852609090daf8cefff1ecf6069ca3f2ab6 /makefile
parentadded the first SaferCPP test. I'll add a doc under docs later on for it. (diff)
downloadmutator-0b8ad545cb59cac27e7a4ec033126bae2ea41040.tar.gz
mutator-0b8ad545cb59cac27e7a4ec033126bae2ea41040.zip
added necessary changes for the new executables. i'm gonna later move the macros to macros.mk
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/makefile b/makefile
index 02ad2da..944953c 100644
--- a/makefile
+++ b/makefile
@@ -97,13 +97,14 @@ TARGET2=mutator-lvl2
TARGETC=mutatorclient
TARGETD=mutatord
TARGETS=mutatorserver
+SFCPP01=safercpp-arr
######################################RULES####################################
.DEFAULT: all
-.PHONY:all clean install help $(TARGET0) $(TARGET1) $(TARGET2) TAGS
+.PHONY:all clean install help $(TARGET0) $(TARGET1) $(TARGET2) TAGS $(SFCPP01)
-all: $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETC) $(TARGETD) $(TARGETS)
+all: $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETC) $(TARGETD) $(TARGETS) $(SFCPP01)
.cpp.o:
$(CXX) $(CXX_FLAGS) -c $< -o $@
@@ -116,9 +117,12 @@ $(TARGET1): $(TARGET1).o mutator_aux.o
$(TARGET2): $(TARGET2).o mutator_aux.o
$(CXX) $^ $(LD_FLAGS) -o $@
-$(TARGET0): $(TARGET0).o mutator_aux.o
+$(TARGET0): $(TARGET0).o mutator_aux.o mutator_report.o
$(CXX) $^ $(LD_FLAGS) -o $@
+$(SFCPP01): ./safercpp/$(SFCPP01).o mutator_aux.o
+ $(MAKE) -C safercpp CXX=$(CXX) LLVM_CONF=$(LLVM_CONF) BUILD_MODE=$(BUILD_MODE)
+
$(TARGETC):
$(MAKE) -C daemon mutatorclient
@@ -136,6 +140,7 @@ clean:
$(MAKE) -C tinyxml2 clean
$(MAKE) -C json clean
$(MAKE) -C daemon clean
+ $(MAKE) -C safercpp clean
install:
chmod +x ./mutator.sh