Add C++ support to the build system, from Scott A. Colcord.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3747 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -42,6 +42,13 @@ $(OBJDIR)%.c.d: $(BUILD_ROOT)%.c
|
||||
fi
|
||||
$(call act,act_mkdep_c,MKDEP ,$@)
|
||||
|
||||
$(OBJDIR)%.cpp.d: $(BUILD_ROOT)%.cpp
|
||||
@DIR=$(dir $@); \
|
||||
if [ ! -d $$DIR ]; then \
|
||||
mkdir -p "$$DIR"; \
|
||||
fi
|
||||
$(call act,act_mkdep_cxx,MKDEP ,$@)
|
||||
|
||||
$(OBJDIR)%.m.d: $(BUILD_ROOT)%.m
|
||||
@DIR=$(dir $@); \
|
||||
if [ ! -d $$DIR ]; then \
|
||||
@@ -63,6 +70,13 @@ $(OBJDIR)%.m.d: $(BUILD_ROOT)%.m
|
||||
fi
|
||||
$(call act,act_cc,CC ,$@)
|
||||
|
||||
%.cpp.o:
|
||||
@DIR=$(dir $@); \
|
||||
if [ ! -d $$DIR ]; then \
|
||||
mkdir -p "$$DIR"; \
|
||||
fi
|
||||
$(call act,act_cxx,CXX ,$@)
|
||||
|
||||
%.m.o:
|
||||
@DIR=$(dir $@); \
|
||||
if [ ! -d $$DIR ]; then \
|
||||
|
||||
Reference in New Issue
Block a user