]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/blob - src/Makefile
Makefile working with packages installed.
[boost-statechart-viewer.git] / src / Makefile
1 -include ../config.local
2
3 # Use our version of clang (even without installing)
4 LLVM_BIN= $(CURDIR)/../_install/bin
5
6 LLVM_CONFIG := $(shell llvm-config --cxxflags --ldflags --libs jit core)
7
8 visualizer: visualizer.cpp commandlineopt.h stringoper.h
9         g++ $< -o $@ -g -lclangParse -lclangFrontend -lclangSerialization \
10         -lclangDriver -lclangCodeGen -lclangSema -lclangChecker \
11         -lclangAnalysis -lclangRewrite -lclangAST -lclangLex -lclangBasic \
12         $(LLVM_CONFIG)
13
14 .PHONY: test
15 test: test.pdf
16
17 %.dot: %.cpp visualizer
18         ./visualizer $< -o $@
19
20 %.pdf: %.dot
21         dot -Tps $< | epstopdf --filter > $@