2013-06-14 02:03:11 +08:00
|
|
|
LEVEL = ../../test/make
|
|
|
|
|
|
|
|
CXX_SOURCES := main.cpp
|
|
|
|
|
2013-06-14 05:27:14 +08:00
|
|
|
EXE := lldb-functions
|
|
|
|
USE_LIBCPP := 1
|
|
|
|
|
2013-06-14 02:03:11 +08:00
|
|
|
MY_OS = $(shell uname -s)
|
2013-06-14 05:27:14 +08:00
|
|
|
|
2013-06-14 02:03:11 +08:00
|
|
|
ifeq "$(MY_OS)" "Darwin"
|
2013-06-14 05:27:14 +08:00
|
|
|
LLDB_BUILD_DIR ?= /Applications/Xcode.app/Contents/SharedFrameworks
|
|
|
|
LD_EXTRAS ?= -framework LLDB -Wl,-rpath,"$(LLDB_BUILD_DIR)"
|
|
|
|
FRAMEWORK_INCLUDES=-F"$(LLDB_BUILD_DIR)"
|
2013-06-14 02:03:11 +08:00
|
|
|
else
|
|
|
|
LD_EXTRAS ?= $(LLDB_BUILD_DIR)/_lldb.so
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.rules
|