1 ##===- tools/debugserver/source/MacOSX/Makefile ------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
9 LLDB_LEVEL := ../../../..
13 TOOLNAME = debugserver
17 TOOL_CODESIGN_IDENTITY := lldb_codesign
19 LLVMLibsOptions += -llldbDebugserverCommon -llldbUtility -llldbDebugserverMacOSX_I386 -llldbDebugserverMacOSX_X86_64 \
20 -framework Foundation -framework CoreFoundation
22 GENERATED_MACH_SOURCES = $(PROJ_OBJ_DIR)/mach_excServer.c $(PROJ_OBJ_DIR)/mach_excUser.c
24 SOURCES := CFBundle.cpp \
35 BUILT_SOURCES = $(GENERATED_MACH_SOURCES) $(PROJ_OBJ_DIR)/HasAVX.o
37 CPP.Flags += -I$(PROJ_OBJ_DIR)/../.. -I$(PROJ_SRC_DIR)/..
39 LD.Flags += -Wl,-sectcreate,__TEXT,__info_plist,$(PROJ_SRC_DIR)/../../resources/lldb-debugserver-Info.plist
41 include $(LLDB_LEVEL)/Makefile
43 ObjectsO += $(PROJ_OBJ_DIR)/HasAVX.o
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 $@
49 ifeq ($(HOST_OS),Darwin)
50 LLVMLibsOptions += -Wl,-rpath,@loader_path/../lib/
53 $(GENERATED_MACH_SOURCES):
54 mig -I$(PROJ_OBJ_DIR)/../.. $(PROJ_SRC_DIR)/dbgnub-mig.defs