aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-02-01 21:12:56 +0000
committerbloodstalker <thabogre@gmail.com>2018-02-01 21:12:56 +0000
commit1062f2a106a0215596c62140e650a83252996a2f (patch)
tree5070bed95027dedd26ebba6af815790bbf9ca006 /makefile
parenttravis fix (diff)
downloadmutator-1062f2a106a0215596c62140e650a83252996a2f.tar.gz
mutator-1062f2a106a0215596c62140e650a83252996a2f.zip
makefile update or they kinda do what they were supposed to do
Diffstat (limited to '')
-rw-r--r--makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/makefile b/makefile
index fb7b9fe..4fff682 100644
--- a/makefile
+++ b/makefile
@@ -1,7 +1,6 @@
######################################INCLUDES#################################
include macros.mk
-
#######################################VARS####################################
EXTRA_LD_FLAGS+=tinyxml2/tinyxml2.o
@@ -15,7 +14,7 @@ TARGETS=mutatorserver
SFCPP01=safercpp-arr
BRUISER=bruiser
OBSC=obfuscator
-
+SRCS=$(wildcard *.cpp)
######################################RULES####################################
.DEFAULT: all
@@ -23,6 +22,14 @@ OBSC=obfuscator
all: $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETC) $(TARGETD) $(TARGETS) $(SFCPP01) $(BRUISER) $(OBSC)
+depend:.depend
+
+.depend:$(SRCS)
+ rm -f ./.depend
+ $(CXX) -MM $(CXX_FLAGS) $^ > ./.depend
+
+-include ./.depend
+
.cpp.o:
$(CXX) $(CXX_FLAGS) -c $< -o $@
$(MAKE) -C tinyxml2 CXX=$(CXX) LLVM_CONF=$(LLVM_CONF) BUILD_MODE=$(BUILD_MODE)
@@ -60,6 +67,7 @@ TAGS: $(SRCS)
clean:
rm -f *.o *~ $(TARGET0) $(TARGET1) $(TARGET2)
+ rm ./.depend
$(MAKE) -C tinyxml2 clean
$(MAKE) -C json clean
$(MAKE) -C daemon clean