aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-01-29 02:44:48 +0000
committerbloodstalker <thabogre@gmail.com>2017-01-29 02:44:48 +0000
commita34bc659c0a576ea6638400aefaac3ae22ca4882 (patch)
treed575f97ff3a69afda62456e1f76efe81f802b4cb /makefile
parentfixed (diff)
downloadmutator-a34bc659c0a576ea6638400aefaac3ae22ca4882.tar.gz
mutator-a34bc659c0a576ea6638400aefaac3ae22ca4882.zip
added the install option, changed the name of an executable to mutator only be the shell wrapper/driver for mutator
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/makefile b/makefile
index e908de7..95840c2 100644
--- a/makefile
+++ b/makefile
@@ -77,22 +77,22 @@ CXX_FLAGS+=$(EXTRA_CXX_FALGS)
LD_FLAGS+=$(EXTRA_LD_FLAGS)
TARGET0=mutator-lvl0
-TARGET=mutator
+TARGET1=mutator-lvl1
TARGET2=mutator-lvl2
######################################RULES####################################
.DEFAULT: all
-.PHONY:all clean help $(TARGET) $(TARGET0) $(TARGET2)
+.PHONY:all clean install help $(TARGET0) $(TARGET1) $(TARGET2)
-all: $(TARGET) $(TARGET2) $(TARGET0)
+all: $(TARGET0) $(TARGET1) $(TARGET2)
.cpp.o:
$(CXX) $(CXX_FLAGS) -c $< -o $@
$(MAKE) -C tinyxml2 CXX=$(CXX) LLVM_CONF=$(LLVM_CONF) BUILD_MODE=$(BUILD_MODE)
$(MAKE) -C json CXX=$(CXX) LLVM_CONF=$(LLVM_CONF) BUILD_MODE=$(BUILD_MODE)
-$(TARGET): $(TARGET).o mutator_aux.o
+$(TARGET1): $(TARGET1).o mutator_aux.o
$(CXX) $^ $(LD_FLAGS) -o $@
$(TARGET2): $(TARGET2).o mutator_aux.o
@@ -102,13 +102,18 @@ $(TARGET0): $(TARGET0).o mutator_aux.o
$(CXX) $^ $(LD_FLAGS) -o $@
clean:
- rm -f *.o *~ $(TARGET0) $(TARGET) $(TARGET2)
+ rm -f *.o *~ $(TARGET0) $(TARGET1) $(TARGET2)
$(MAKE) -C tinyxml2 clean
$(MAKE) -C json clean
+install:
+ chmod +x ./mutator.sh
+ chmod +x ./extra-tools/ReportPrintPretty.sh
+
help:
@echo '- There is help.'
@echo '- All is the default.'
+ @echo '- install makes the scripts executable. Currently this is all it does.'
@echo '- Clean.'
@echo '- You can use the target names as build targets to just build one executable.'
@echo '- LLVM_CONF will tell the makefile the name of llvm-config. llvm-config is the default.'