diff options
Diffstat (limited to 'examples/Kaleidoscope/Orc/lazy_irgen/Makefile')
-rw-r--r-- | examples/Kaleidoscope/Orc/lazy_irgen/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/Kaleidoscope/Orc/lazy_irgen/Makefile b/examples/Kaleidoscope/Orc/lazy_irgen/Makefile new file mode 100644 index 0000000..5536314 --- /dev/null +++ b/examples/Kaleidoscope/Orc/lazy_irgen/Makefile @@ -0,0 +1,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 |