]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/blobdiff - Makefile
Correction of subautomaton visualization.
[boost-statechart-viewer.git] / Makefile
index cda9abfe853622c75cc1d9cc7540312925c7711b..9f9a321ae637c27015be24214248e4d3a4ea66f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,23 @@
-LLVM_SRC=/home/petr/llvm
-
 -include config.local
 
-glang++ : bp.cpp
-       -clang++ -v -g -cc1 -fno-rtti `llvm-config --cxxflags           \
-       ---ldflags --libs` lclangBasic -lclangLex -lclangDriver         \
-       --lclangFrontend -lclangParse -lclangAST -lclangSema            \
-       --lclangAnalysis -I $(LLVM_SRC)/tools/clang/include/ -I \
-       -$(LLVM_SRC)/include/ bp.cpp
+# Use our version of clang (even without installing)
+LLVM_BIN= $(CURDIR)/_install/bin
+
+LLVM_CONFIG := $(LLVM_BIN)/llvm-config
+
+export LLVM_CONFIG
+
+all: llvm src examples
+
+.PHONY: llvm src examples
+
+llvm: _install/lib/libclang.so
+
+_install/lib/libclang.so:
+       $(MAKE) -C llvm/_build install
+
+src: llvm
+       $(MAKE) -C src
+
+examples: src
+       $(MAKE) -C examples
\ No newline at end of file