[Makefiles] Re-add OSX specific code that got lost in lldbHost consolidation

llvm-svn: 242577
This commit is contained in:
Keno Fischer 2015-07-17 21:47:35 +00:00
parent 636a0e3836
commit 3b3380ec44
1 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,7 @@ include $(LEVEL)/Makefile.config
define DIR_SOURCES
SOURCES += $$(addprefix $(1)/,$$(notdir $$(wildcard $$(PROJ_SRC_DIR)/$(1)/*.cpp \
$$(PROJ_SRC_DIR)/*.cc $$(PROJ_SRC_DIR)/$(1)/*.c)))
$$(PROJ_SRC_DIR)/*.cc $$(PROJ_SRC_DIR)/$(1)/*.c $$(PROJ_SRC_DIR)/$(1)/*.mm)))
endef
$(eval $(call DIR_SOURCES,common))
@ -22,6 +22,15 @@ $(eval $(call DIR_SOURCES,common))
ifeq ($(HOST_OS),Darwin)
$(eval $(call DIR_SOURCES,posix))
$(eval $(call DIR_SOURCES,macosx))
CFCPP_SOURCES = \
$(addprefix macosx/cfcpp/,$(notdir $(wildcard $(PROJ_SRC_DIR)/macosx/cfcpp/*.cpp)))
SOURCES += $(CFCPP_SOURCES)
CFCPP_BaseNameSources := $(sort $(basename $(CFCPP_SOURCES)))
CFCPP_OBJECTS := $(CFCPP_BaseNameSources:%=$(ObjDir)/%.o)
# Make sure the cfcpp output directory exists
$(CFCPP_OBJECTS): $(ObjDir)/cfcpp/.dir
endif
ifeq ($(HOST_OS),Linux)