]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/blobdiff - src/Makefile
Update Makefiles and README to use the default LLVM installation
[boost-statechart-viewer.git] / src / Makefile
index a49fce356b6d2eb6294ff561ab96e68dc6da056d..0c8f7367c9bf31d8f0ee1e5d98f8dce8d8938c4f 100644 (file)
@@ -1,12 +1,11 @@
--include ../config.local
+-include ../Makefile.config
 
-# Use our version of clang (even without installing)
-LLVM_BIN= $(CURDIR)/../_install/bin
+LLVM_CONFIG ?= llvm-config
 
-LLVM_CONFIG := $(shell $(LLVM_BIN)/llvm-config --cxxflags --ldflags --libs jit core)
+LLVM_FLAGS := $(shell $(LLVM_CONFIG) --cxxflags --ldflags --libs jit core)
 
-g++ : visualizer.cpp
-       g++ visualizer.cpp -o visualizer -g -lclangParse -lclangFrontend -lclangSerialization \
-       -lclangDriver -lclangCodeGen -lclangSema -lclangChecker \
+visualizer: visualizer.cpp stringoper.h iooper.h
+       $(CXX) $< -o $@ -g -Wall -lclangParse -lclangFrontend -lclangSerialization \
+       -lclangDriver -lclangCodeGen -lclangSema \
        -lclangAnalysis -lclangRewrite -lclangAST -lclangLex -lclangBasic \
-       $(LLVM_CONFIG)
+       $(LLVM_FLAGS)