diff options
author | bloodstalker <thabogre@gmail.com> | 2018-02-01 21:12:56 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-02-01 21:12:56 +0000 |
commit | 1062f2a106a0215596c62140e650a83252996a2f (patch) | |
tree | 5070bed95027dedd26ebba6af815790bbf9ca006 /safercpp/makefile | |
parent | travis fix (diff) | |
download | mutator-1062f2a106a0215596c62140e650a83252996a2f.tar.gz mutator-1062f2a106a0215596c62140e650a83252996a2f.zip |
makefile update or they kinda do what they were supposed to do
Diffstat (limited to 'safercpp/makefile')
-rw-r--r-- | safercpp/makefile | 10 |
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.' |