From 1062f2a106a0215596c62140e650a83252996a2f Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 2 Feb 2018 00:42:56 +0330 Subject: makefile update or they kinda do what they were supposed to do --- obfuscator/makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'obfuscator') 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.' -- cgit v1.2.3