]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/blobdiff - Makefile
Do not require C++11 capable compiler
[boost-statechart-viewer.git] / Makefile
index bc774c04055d5c5211d062ba287de53e0bac95ab..4aade4d4b1f14fb2d4b2a438f471c4efb18eaeb3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,9 @@
-#LLVM_SRC=llvm
+all: src examples
 
--include config.local
+.PHONY: src examples
 
-# Use our version of clang (even without installing)
-LLVM_BIN= $(CURDIR)/_install/bin
+src:
+       $(MAKE) -C src
 
-LLVM_CONFIG := $(shell $(LLVM_BIN)/llvm-config --cxxflags --ldflags --libs jit core)
-
-g++ : visualizer.cpp
-       g++ visualizer.cpp -o visualizer -g -lclangParse -lclangFrontend -lclangSerialization \
-       -lclangDriver -lclangCodeGen -lclangSema -lclangChecker \
-       -lclangAnalysis -lclangRewrite -lclangAST -lclangLex -lclangBasic \
-       $(LLVM_CONFIG)
+examples: src
+       $(MAKE) -C examples