mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
4796371615
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229949 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
398 B
Makefile
18 lines
398 B
Makefile
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
|