Add a convenience target to build all three modes: Debug, Release, Profile
authorReid Spencer <rspencer@reidspencer.com>
Thu, 25 Nov 2004 09:08:54 +0000 (09:08 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 25 Nov 2004 09:08:54 +0000 (09:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18241 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile

index cd7e52131dea47de28e56b8888b754e1a5f2ea77..d2a4fbf0224f7bbe84d100d26cc62f4ca0e0832d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,6 @@
 LEVEL = .
 DIRS = lib/System lib/Support utils lib tools 
 
-
 ifneq ($(MAKECMDGOALS),tools-only)
 DIRS += runtime
 OPTIONAL_DIRS = examples projects
@@ -19,6 +18,19 @@ EXTRA_DIST := test llvm.spec include
 
 include $(LEVEL)/Makefile.common
 
+.PHONY: debug-opt-prof
+debug-opt-prof:
+       $(Echo) Building Debug Version
+       $(Verb) $(MAKE)
+       $(Echo)
+       $(Echo) Building Optimized Version
+       $(Echo)
+       $(Verb) $(MAKE) ENABLE_OPTIMIZED=1
+       $(Echo)
+       $(Echo) Building Profiling Version
+       $(Echo)
+       $(Verb) $(MAKE) ENABLE_PROFILING=1
+
 dist-hook::
        $(Echo) Eliminating CVS directories from distribution
        $(Verb) $(RM) -rf `find $(TopDistDir) -type d -name CVS -print`