aboutsummaryrefslogtreecommitdiffstats
path: root/examples/Kaleidoscope/Orc/lazy_irgen/Makefile
blob: 5536314f2a30906c750f6a6d74c0d4c71417df01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
UNAME := $(shell uname -s)

ifeq ($(UNAME),Darwin)
	CXX := xcrun --sdk macosx clang++
else
	CXX := clang++
endif

LLVM_CXXFLAGS := $(shell llvm-config --cxxflags)
LLVM_LDFLAGS := $(shell llvm-config  --ldflags --system-libs --libs core orcjit native)

toy: toy.cpp
	$(CXX) $(LLVM_CXXFLAGS) -Wall -std=c++11 -g -O0 -rdynamic -fno-rtti -o toy toy.cpp $(LLVM_LDFLAGS)

.PHONY: clean
clean:
	rm -f toy