]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/debugserver/source/MacOSX/Makefile
Vendor import of lldb release_38 branch r260756:
[FreeBSD/FreeBSD.git] / tools / debugserver / source / MacOSX / Makefile
1 ##===- tools/debugserver/source/MacOSX/Makefile ------------*- Makefile -*-===##
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9 LLDB_LEVEL := ../../../..
10
11 DIRS := i386 x86_64
12
13 TOOLNAME = debugserver
14
15 CODESIGN_TOOLS := 1
16
17 TOOL_CODESIGN_IDENTITY := lldb_codesign
18
19 LLVMLibsOptions += -llldbDebugserverCommon -llldbUtility -llldbDebugserverMacOSX_I386 -llldbDebugserverMacOSX_X86_64 \
20                                         -framework Foundation -framework CoreFoundation
21
22 GENERATED_MACH_SOURCES = $(PROJ_OBJ_DIR)/mach_excServer.c $(PROJ_OBJ_DIR)/mach_excUser.c
23
24 SOURCES := CFBundle.cpp \
25   CFData.cpp                    \
26   CFString.cpp                  \
27   MachException.cpp             \
28   MachProcess.cpp               \
29   MachTask.cpp                  \
30   MachThread.cpp                \
31   MachThreadList.cpp    \
32   MachVMMemory.cpp              \
33   MachVMRegion.cpp
34
35 BUILT_SOURCES = $(GENERATED_MACH_SOURCES) $(PROJ_OBJ_DIR)/HasAVX.o
36
37 CPP.Flags += -I$(PROJ_OBJ_DIR)/../.. -I$(PROJ_SRC_DIR)/..
38
39 LD.Flags += -Wl,-sectcreate,__TEXT,__info_plist,$(PROJ_SRC_DIR)/../../resources/lldb-debugserver-Info.plist
40
41 include $(LLDB_LEVEL)/Makefile
42
43 ObjectsO += $(PROJ_OBJ_DIR)/HasAVX.o
44
45 $(PROJ_OBJ_DIR)/HasAVX.o: $(PROJ_SRC_DIR)/HasAVX.s
46         $(Echo) "Compiling HasAVX.s for $(BuildMode) build" $(PIC_FLAG)
47         $(CC) $(TargetCommonOpts) $(CompileCommonOpts) -c $< -o $@
48
49 ifeq ($(HOST_OS),Darwin)
50 LLVMLibsOptions += -Wl,-rpath,@loader_path/../lib/
51 endif
52
53 $(GENERATED_MACH_SOURCES):
54         mig -I$(PROJ_OBJ_DIR)/../.. $(PROJ_SRC_DIR)/dbgnub-mig.defs