[llvm-commits] CVS: llvm/Makefile

Reid Spencer reid at x10sys.com
Thu Nov 25 01:09:05 PST 2004



Changes in directory llvm:

Makefile updated: 1.41 -> 1.42
---
Log message:

Add a convenience target to build all three modes: Debug, Release, Profile


---
Diffs of the changes:  (+13 -1)

Index: llvm/Makefile
diff -u llvm/Makefile:1.41 llvm/Makefile:1.42
--- llvm/Makefile:1.41	Sun Nov  7 23:44:05 2004
+++ llvm/Makefile	Thu Nov 25 03:08:54 2004
@@ -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 @@
 
 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`






More information about the llvm-commits mailing list