[llvm-branch-commits] [cfe-branch] r92556 - in /cfe/branches/Apple/lemur-IB: Makefile NMakefile
Daniel Dunbar
daniel at zuster.org
Mon Jan 4 16:46:27 PST 2010
Author: ddunbar
Date: Mon Jan 4 18:46:27 2010
New Revision: 92556
URL: http://llvm.org/viewvc/llvm-project?rev=92556&view=rev
Log:
Sketch Makefile and NMakefile for working with translator project.
Added:
cfe/branches/Apple/lemur-IB/Makefile
cfe/branches/Apple/lemur-IB/NMakefile
Added: cfe/branches/Apple/lemur-IB/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/lemur-IB/Makefile?rev=92556&view=auto
==============================================================================
--- cfe/branches/Apple/lemur-IB/Makefile (added)
+++ cfe/branches/Apple/lemur-IB/Makefile Mon Jan 4 18:46:27 2010
@@ -0,0 +1,28 @@
+##
+# Clang Makefile
+##
+
+# Project info
+Project := objc_translate
+
+##
+
+SVN_BASE = $(shell svn info | sed -n "s/^URL: //; s,/llvm-project/.*$$,/llvm-project,p")
+SVN_CLANG = $(shell svn info | sed -n "s/^URL: //p")
+
+all:
+ @echo "usage: make [target]"
+ @echo ""
+ @echo "Available Targets:"
+ @echo " update-sources: update LLVM and Clang sources"
+
+update-sources:
+ echo svn rm -m 'Update.' $(SVN_CLANG)/src
+ echo svn cp -m 'Update.' $(SVN_BASE)/llvm/trunk $(SVN_CLANG)/src
+ echo svn cp -m 'Update.' $(SVN_BASE)/cfe/trunk $(SVN_CLANG)/src/tools/clang
+
+###
+# Debugging
+
+make-print-%:
+ $(error PRINT: $(value $*) = "$($*)" (from $(origin $*)))
Added: cfe/branches/Apple/lemur-IB/NMakefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/lemur-IB/NMakefile?rev=92556&view=auto
==============================================================================
--- cfe/branches/Apple/lemur-IB/NMakefile (added)
+++ cfe/branches/Apple/lemur-IB/NMakefile Mon Jan 4 18:46:27 2010
@@ -0,0 +1,26 @@
+CMAKE=cmake
+VCBUILD="$(VS80COMNTOOLS)\..\..\VC\VCPackages\vcbuild"
+JOBS=1
+
+#CMAKE="c:\program files\CMake 2.8\bin\cmake"
+#JOBS=4
+
+all:
+ @echo "usage: make [target]"
+ @echo
+ @echo "Available Targets:"
+ @echo " configure: configure using CMake (inside OBJROOT)"
+ @echo " build : build using vcbuild.exe (inside OBJROOT)"
+ @echo " install : configure, build and install"
+
+configure:
+ cd "$(OBJROOT)"
+ $(CMAKE) -DCMAKE_INSTALL_PREFIX:=$(DSTROOT) -DLLVM_TARGETS_TO_BUILD:=X86 -G "Visual Studio 8 2005" $(SRCROOT)\src
+
+build: configure
+ cd "$(OBJROOT)"
+ $(VCBUILD) /M$(JOBS) /r LLVM.sln "Release|Win32"
+
+install: build
+ cd "$(OBJROOT)"
+ $(VCBUILD) /M$(JOBS) /r INSTALL.vcproj "Release|Win32"
More information about the llvm-branch-commits
mailing list