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 --- safercpp/makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'safercpp/makefile') diff --git a/safercpp/makefile b/safercpp/makefile index 5c5791f..57ef94d 100644 --- a/safercpp/makefile +++ b/safercpp/makefile @@ -5,7 +5,7 @@ include ../macros.mk #######################################VARS#################################### CXX_FLAGS+=-frtti SFCPP01=safercpp-arr - +SRCS=$(wildcard *.cpp) ifeq ($(shell $(LLVM_CONF) --has-rtti), NO) $(error your llvm-config says you dont have rtti. you cant build safercpparr without rtti support.) endif @@ -16,6 +16,13 @@ endif all: $(SFCPP01) +%cpp:.depend + +.depend:$(SRCS) + $(CXX) -MM $(CXX_FLAGS) $^ > ./.depend + +-include .depend + .cpp.o: $(CXX) $(CXX_FLAGS) -c $< -o $@ @@ -24,6 +31,7 @@ $(SFCPP01): $(SFCPP01).o ../mutator_aux.o clean: rm -f *.o *~ $(SFCPP01) + rm ./.depend help: @echo 'There is help.' -- cgit v1.2.3