X-Git-Url: http://rtime.felk.cvut.cz/gitweb/boost-statechart-viewer.git/blobdiff_plain/4fa9a0f183c22257983fb7a4cff719cf5be7313f..cecfba7b6fd2bf47cae4308e565babb2c7bf8a8d:/Makefile diff --git a/Makefile b/Makefile index fae5407..9f9a321 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,23 @@ -#LLVM_SRC=llvm - -include config.local -clang++ : bp.cpp - -clang++ -v -g -cc1 -fno-rtti `llvm-config --cxxflags --ldflags \ - --libs all` -lclangBasic -lclangLex -lclangDriver -lclangFrontend \ - -lclangParse -lclangAST -lclangSema -lclangAnalysis \ - 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