aboutsummaryrefslogtreecommitdiffstats
path: root/obfuscator/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'obfuscator/makefile')
-rw-r--r--obfuscator/makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/obfuscator/makefile b/obfuscator/makefile
index ccfc405..11a3219 100644
--- a/obfuscator/makefile
+++ b/obfuscator/makefile
@@ -4,13 +4,22 @@ include ../macros.mk
#######################################VARS####################################
OBSC=obfuscator
+SRCS=$(wildcard *.cpp)
######################################RULES####################################
.DEFAULT: all
-.PHONY: all clean help
+.PHONY: all clean help depend
all: $(OBSC)
+depend: .depend
+
+.depend:$(SRCS)
+ rm -f ./.depend
+ $(CXX) -MM $(CXX_FLAGS) $^ > ./.depend
+
+-include ./.depend
+
.cpp.o:
$(CXX) $(CXX_FLAGS) -c $< -o $@
@@ -19,6 +28,7 @@ $(OBSC): $(OBSC).o ../mutator_aux.o
clean:
rm -f *.o *~ $(OBSC)
+ rm ./.depend
help:
@echo 'There is help.'