5536314f2a30906c750f6a6d74c0d4c71417df01
[oota-llvm.git] / examples / Kaleidoscope / Orc / lazy_codegen / Makefile
1 UNAME := $(shell uname -s)
2
3 ifeq ($(UNAME),Darwin)
4         CXX := xcrun --sdk macosx clang++
5 else
6         CXX := clang++
7 endif
8
9 LLVM_CXXFLAGS := $(shell llvm-config --cxxflags)
10 LLVM_LDFLAGS := $(shell llvm-config  --ldflags --system-libs --libs core orcjit native)
11
12 toy: toy.cpp
13         $(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++11 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp $(LLVM_LDFLAGS)
14
15 .PHONY: clean
16 clean:
17         rm -f toy