aboutsummaryrefslogtreecommitdiffstats
path: root/safercpp/makefile
blob: 57ef94d91ee291a74fa98dfbe4586fa1ce1784f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
######################################INCLUDES#################################
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
######################################RULES####################################
.DEFAULT: all

.PHONY: all clean help

all: $(SFCPP01)

%cpp:.depend 

.depend:$(SRCS)
	$(CXX) -MM $(CXX_FLAGS) $^ > ./.depend

-include .depend

.cpp.o:
	$(CXX) $(CXX_FLAGS) -c $< -o $@

$(SFCPP01): $(SFCPP01).o ../mutator_aux.o
	$(CXX) $^ $(LD_FLAGS) -o $@

clean:
	rm -f *.o *~ $(SFCPP01)
	rm ./.depend

help:
	@echo 'There is help.'
	@echo 'All is the defualt target.'
	@echo 'Clean runs clean.'
	@echo 'For a more complete and detaild list of BUILD_MODE and other things look at the main makefiles help under project root.'