[llvm-commits] [hlvm] r38213 - /hlvm/trunk/Makefile

Reid Spencer reid at x10sys.com
Sat Jul 7 17:01:13 PDT 2007


Author: reid
Date: Sat Jul  7 19:01:12 2007
New Revision: 38213

URL: http://llvm.org/viewvc/llvm-project?rev=38213&view=rev
Log:
Make this a little more user friendly by handling the confpath option. Also, add
some new targets for building Release, Debug, Optimized, and Profile versions.

Modified:
    hlvm/trunk/Makefile

Modified: hlvm/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/Makefile?rev=38213&r1=38212&r2=38213&view=diff

==============================================================================
--- hlvm/trunk/Makefile (original)
+++ hlvm/trunk/Makefile Sat Jul  7 19:01:12 2007
@@ -9,34 +9,45 @@
 # make.
 #------------------------------------------------------------------------------
 
-.PHONY: all check install hlvm tools
-all:
-	scons -Q
+MYMODE := Debug
+MYPATH := /proj/llvm/cfe/install:/proj/install
 
-debug:
-	scons -Q mode=debug debug=1 assertions=1 optimized=0 inline=0 small=0
+.PHONY: all debug Debug optimized Optimized release Release check clean \
+	install hlvm tools
 
-optimized:
-	scons -Q mode=optimized debug=0 assertions=1 optimized=1 inline=1 \
-	small=0
+all:
+	scons -Q mode=$(MYMODE)
 
-release:
-	scons -Q mode=release debug=0 assertions=0 optimized=1 inline=1 small=1
+debug Debug:
+	scons -Q mode=Debug debug=1 assertions=1 optimized=0 inline=0 \
+	small=0 confpath=$(MYPATH)
+
+optimized Optimized:
+	scons -Q mode=Optimized debug=0 assertions=1 optimized=1 inline=1 \
+	small=0 strip=0 confpath=$(MYPATH)
+
+release Release:
+	scons -Q mode=Release debug=0 assertions=0 optimized=1 inline=1 \
+	small=1 strip=1 confpath=$(MYPATH)
+
+profile Profile:
+	scons -Q mode=Profile debug=0 assertions=0 optimized=1 inline=1 \
+	small=0 strip=0 profile=1 confpath=$(MYPATH)
 
 check:  all
-	scons -Q check
+	scons -Q check mode=$(MYMODE)
 
 clean:
-	scons -Q --clean 
+	scons -Q --clean mode=$(MYMODE)
 
 install:
-	scons -Q install
+	scons -Q install mode=$(MYMODE)
 
 doc:
-	scons -Q docs
+	scons -Q docs mode=$(MYMODE)
 
 hlvm:
-	cd hlvm ; scons -Q -u
+	cd hlvm ; scons -Q -u mode=$(MYMODE)
 
 tools:
-	cd tools ; scons -Q -u
+	cd tools ; scons -Q -u mode=$(MYMODE)





More information about the llvm-commits mailing list