aboutsummaryrefslogtreecommitdiffstats
path: root/safercpp/makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--safercpp/makefile10
1 files changed, 9 insertions, 1 deletions
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.'