From a34bc659c0a576ea6638400aefaac3ae22ca4882 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 29 Jan 2017 06:14:48 +0330 Subject: added the install option, changed the name of an executable to mutator only be the shell wrapper/driver for mutator --- makefile | 15 ++++++++++----- 1 file 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.' -- cgit v1.2.3