summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-13 16:13:01 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-13 16:13:01 +0000
commit557a6eace292091d14419a334e8d62d9ec9e772b (patch)
treef6c79d3e8e2c602edeaab72799ed27d7a83185d0 /Makefile
parentfe4eb31f6b835d1cca3edb43db307ba36f603248 (diff)
Tidy up comments, remove whitespace, and rename 'print-%' make debugging target
to 'make-print-%' to match LLVM. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@93319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 11 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index ab1850a12..82efba1a6 100644
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,8 @@ all::
include make/config.mk
include make/util.mk
-# If SRCROOT is defined, assume we are doing an Apple style build. We
-# should be able to use RC_XBS for this but that is unused during
-# "make installsrc".
+# If SRCROOT is defined, assume we are doing an Apple style build. We should be
+# able to use RC_XBS for this but that is unused during "make installsrc".
ifdef SRCROOT
include make/AppleBI.mk
endif
@@ -75,7 +74,7 @@ clean:: $(ActiveObjPath)/.remove
endef
# Template: CNA_template Config Arch
-#
+#
# This template is used once per Config/Arch at the top-level.
define CNA_template
$(call Set,ActiveConfig,$1)
@@ -84,10 +83,9 @@ $(call Set,ActiveObjPath,$(ProjObjRoot)/$(ActiveConfig)/$(ActiveArch))
$(call Set,ActiveLibGen,$(ActiveObjPath)/libcompiler_rt.Generic.a)
$(call Set,ActiveLibOpt,$(ActiveObjPath)/libcompiler_rt.Optimized.a)
-# Initialize inputs lists. This are extended by the CNA_subdir
-# template. The one tricky bit is that we need to use these quoted,
-# because they are not complete until the entire makefile has been
-# processed.
+# Initialize inputs lists. This are extended by the CNA_subdir template. The one
+# tricky bit is that we need to use these quoted, because they are not complete
+# until the entire makefile has been processed.
$(call Set,GenericInputs.$(ActiveConfig).$(ActiveArch),)
$(call Set,OptimizedInputs.$(ActiveConfig).$(ActiveArch),)
# Final.Inputs is created once we have loaded all the subdirectories
@@ -124,10 +122,10 @@ $(foreach config,$(Configs), \
###
# How to build things.
-# Define rules for building on each configuration & architecture. This
-# is not exactly obvious, but variables inside the template are being
-# expanded during the make processing, so automatic variables must be
-# quoted and normal assignment cannot be used.
+# Define rules for building on each configuration & architecture. This is not
+# exactly obvious, but variables inside the template are being expanded during
+# the make processing, so automatic variables must be quoted and normal
+# assignment cannot be used.
# Template: CNA_template Config Arch Dir
# Uses: GetArgs, Dependencies, ObjNames
@@ -143,8 +141,7 @@ $(call Set,ActiveObjPath,$(ProjObjRoot)/$(ActiveDir)/$(ActiveConfig)/$(ActiveArc
$(call Set,ActiveFlags,$(call GetArgs,$(ActiveConfig),$(ActiveArch)))
$(call Set,ActiveObjects,$(ObjNames:%=$(ActiveObjPath)/%))
-# Add to the input list for the appropriate library and update the
-# dependency.
+# Add to the input list for the appropriate library and update the dependency.
$(call Append,$(Target).Inputs.$(ActiveConfig).$(ActiveArch),$(ActiveObjects))
$(ProjObjRoot)/$(ActiveConfig)/$(ActiveArch)/libcompiler_rt.$(Target).a: $(ActiveObjects)