object.gcc.post.rules

来自「ACE编程的一本经典BIBLE的源代码,喜欢网络编程的别错过」· RULES 代码 · 共 39 行

RULES
39
字号
# file      : BuildRules/Object.gcc.post.rules
# author    : Boris Kolpackov <boris@kolpackov.net>
# copyright : Copyright (c) 2002-2003 Boris Kolpackov
# license   : http://kolpackov.net/license.html


#
# Note: normally you wouldn't want to change anything below.
#

#
# Pattern rules catalog.
# {

# Defined pattern rule to build .o from .cpp
%.o : %.cpp
	$(CXX) $(CXX_PREPROCESS_FLAGS) $(CXX_COMPILE_FLAGS) -MD -MP -MT $(@:.o=.d) -MF $(@:.o=.d) -c $< -o $@

# }

# Defines the rule to build object files from c++ translation units.
.PHONY : object
object : $(cxx_translation_units:.cpp=.o)

# Defines a phony target to clean all that's been generated
.PHONY : clean
clean :
	-rm -f $(cxx_translation_units:.cpp=.o)
	-rm -f $(cxx_translation_units:.cpp=.d)


# Include dependencies for c++ translation units.
-include $(cxx_translation_units:.cpp=.d)


# The following catch-all rule will skip unknown targets
%:: ;@:
# Object.gcc.post.rules,v 1.1 2005/05/24 04:33:12 turkaye Exp

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?