summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/examples/functions/Makefile
blob: 64ea6e75b332fd5992d6be07ad22d9907db0f664 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
LEVEL = ../../test/make

CXX_SOURCES := main.cpp

EXE := lldb-functions
USE_LIBCPP := 1

MY_OS = $(shell uname -s)

ifeq "$(MY_OS)" "Darwin"
    LLDB_BUILD_DIR ?= /Applications/Xcode.app/Contents/SharedFrameworks
    LD_EXTRAS ?= -framework LLDB -Wl,-rpath,"$(LLDB_BUILD_DIR)"
	FRAMEWORK_INCLUDES=-F"$(LLDB_BUILD_DIR)"
else
    LD_EXTRAS ?= $(LLDB_BUILD_DIR)/_lldb.so
endif

include $(LEVEL)/Makefile.rules