From 334782733fde9d1ee14f155f2de636cdacd944db Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 25 Nov 2004 09:08:54 +0000 Subject: [PATCH] Add a convenience target to build all three modes: Debug, Release, Profile llvm-svn: 18241 --- llvm/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/llvm/Makefile b/llvm/Makefile index cd7e52131dea..d2a4fbf0224f 100644 --- a/llvm/Makefile +++ b/llvm/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`