aboutsummaryrefslogblamecommitdiffstats
path: root/makefile
blob: 1df41acc245ec803207f75b502256a63f6cc383b (plain) (tree)












































                                                                                                                                
#######################################VARS####################################
#CXX=g++
CXX=/home/bloodstalker/llvm/llvm/build/bin/clang++

CXX_FLAGS=$(shell /home/bloodstalker/llvm/llvm/build/bin/llvm-config --cxxflags)
#CXX_FLAGS=$(shell llvm-config --cxxflags)

EXTRA_CXX_FALGS=-I/home/bloodstalker/llvm/llvm/llvm/tools/clang/include -I/home/bloodstalker/llvm/llvm/build/tools/clang/include
EXTRA_LD_FLAGS=

LD_FLAGS=-Wl,--start-group -lclangAST -lclangAnalysis -lclangBasic\
-lclangDriver -lclangEdit -lclangFrontend -lclangFrontendTool\
-lclangLex -lclangParse -lclangSema -lclangEdit -lclangASTMatchers\
-lclangRewrite -lclangRewriteFrontend -lclangStaticAnalyzerFrontend\
-lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore\
-lclangSerialization -lclangToolingCore -lclangTooling -Wl,--end-group
LD_FLAGS+=$(shell /home/bloodstalker/llvm/llvm/build/bin/llvm-config --ldflags --libs --system-libs)
#LD_FLAGS+=$(shell llvm-config --ldflags --libs --system-libs)

CXX_FLAGS+=$(EXTRA_CXX_FALGS)
LD_FLAGS+=$(EXTRA_LD_FLAGS)

TARGET=mutator

######################################RULES####################################
.DEFAULT: all

.PHONY:all clean help

all: $(TARGET)

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

$(TARGET): $(TARGET).o 
	$(CXX) $< $(LD_FLAGS) -o $@

clean:
	rm -f *.o *~ $(TARGET)

help:
	@echo 'there is help.'
	@echo 'all is the default.'
	@echo 'clean.'