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 --- makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'makefile') 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 -- cgit v1.2.3