[llvm-branch-commits] [cfe-branch] r93820 - in /cfe/branches/Apple/lemur-IB: Makefile NMakefile
Daniel Dunbar
daniel at zuster.org
Mon Jan 18 16:13:51 PST 2010
Author: ddunbar
Date: Mon Jan 18 18:13:51 2010
New Revision: 93820
URL: http://llvm.org/viewvc/llvm-project?rev=93820&view=rev
Log:
Drop use of 'nmake' and just require GNU make, the pain to portability ratio isn't worth it.
Removed:
cfe/branches/Apple/lemur-IB/NMakefile
Modified:
cfe/branches/Apple/lemur-IB/Makefile
Modified: cfe/branches/Apple/lemur-IB/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/lemur-IB/Makefile?rev=93820&r1=93819&r2=93820&view=diff
==============================================================================
--- cfe/branches/Apple/lemur-IB/Makefile (original)
+++ cfe/branches/Apple/lemur-IB/Makefile Mon Jan 18 18:13:51 2010
@@ -7,15 +7,78 @@
##
+CMAKE := $(CMAKE)
+ifeq ($(strip $(CMAKE)),)
+CMAKE := cmake
+endif
+
+VCBUILD := $(VS90COMNTOOLS)\..\..\VC\VCPackages\vcbuild
+JOBS := $(NUMBER_OF_PROCESSORS)
+
+##
+
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:
+# Instead of jiggling the project files to only install the bits we want, we do
+# a real install into the OBJROOT, and then copy the exact bits we want to the
+# DSTROOT.
+#
+# It would be nice to not build unnecessary stuff though, to save build time.
+STAGEROOT := $(OBJROOT)\install
+
+BINDEST := $(DSTROOT)\AppleInternal\bin
+
+# Override default CMake flags to use static C run-time library.
+#
+# FIXME: Currently clang is miscompiled with the default release settings. For
+# now, force optimization off. :(
+CXXFLAGS := /MT /Od /Ob0 /D NDEBUG
+
+# Override CMake default libraries list, which is much larger than we need.
+CXXLIBS := kernel32.lib user32.lib advapi32.lib
+
+TARGET := Release|Win32
+
+all:: help
+
+help:
@echo "usage: make [target]"
@echo ""
@echo "Available Targets:"
+ @echo " clean : clean the build (removes OBJROOT)"
+ @echo " configure: configure using CMake (inside OBJROOT)"
+ @echo " build : build using vcbuild.exe (inside OBJROOT)"
+ @echo " test : run the clang regression tests"
+ @echo " install : configure, build, test and install"
+ @echo ""
@echo " update-sources: update LLVM and Clang sources"
+clean:
+ del /s/q "$(OBJROOT)"
+
+configure:
+ "$(CMAKE)" -E make_directory "$(OBJROOT)"
+ cd "$(OBJROOT)" && \
+ "$(CMAKE)" "-DCMAKE_INSTALL_PREFIX:=$(STAGEROOT)" \
+ -DLLVM_TARGETS_TO_BUILD:=X86 \
+ "-DCMAKE_CXX_FLAGS_RELEASE:STRING=$(CXXFLAGS)" \
+ "-DCMAKE_CXX_STANDARD_LIBRARIES:STRING=$(CXXLIBS)" \
+ -G "Visual Studio 9 2008" \
+ "$(SRCROOT)\src"
+
+# FIXME: Only build clang.
+build: configure
+ "$(VCBUILD)" /M$(JOBS) "$(OBJROOT)"\LLVM.sln "$(TARGET)"
+ "$(VCBUILD)" /M$(JOBS) "$(OBJROOT)"\INSTALL.vcproj "$(TARGET)"
+
+test: build
+ "$(VCBUILD)" /M$(JOBS) "$(OBJROOT)"\tools\clang\test\clang-test.vcproj "$(TARGET)"
+
+install: test
+ "$(CMAKE)" -E make_directory "$(BINDEST)"
+ xcopy /i/y "$(STAGEROOT)\bin\clang.exe" "$(BINDEST)"
+
update-sources:
svn rm -m 'Update.' $(SVN_CLANG)/src
svn cp -m 'Update.' $(SVN_BASE)/llvm/trunk $(SVN_CLANG)/src
Removed: cfe/branches/Apple/lemur-IB/NMakefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/lemur-IB/NMakefile?rev=93819&view=auto
==============================================================================
--- cfe/branches/Apple/lemur-IB/NMakefile (original)
+++ cfe/branches/Apple/lemur-IB/NMakefile (removed)
@@ -1,64 +0,0 @@
-CMAKE=cmake
-VCBUILD=$(VS90COMNTOOLS)\..\..\VC\VCPackages\vcbuild
-JOBS=$(NUMBER_OF_PROCESSORS)
-
-###
-
-# Instead of jiggling the project files to only install the bits we want, we do
-# a real install into the OBJROOT, and then copy the exact bits we want to the
-# DSTROOT.
-#
-# It would be nice to not build unnecessary stuff though, to save build time.
-STAGEROOT=$(OBJROOT)\install
-
-BINDEST=$(DSTROOT)\AppleInternal\bin
-
-# Override default CMake flags to use static C run-time library.
-#
-# FIXME: Currently clang is miscompiled with the default release settings. For
-# now, force optimization off. :(
-CXXFLAGS=/MT /Od /Ob0 /D NDEBUG
-
-# Override CMake default libraries list, which is much larger than we need.
-CXXLIBS=kernel32.lib user32.lib advapi32.lib
-
-TARGET=Release|Win32
-
-all:: help
-
-help:
- @echo "usage: make [target]"
- @echo
- @echo "Available Targets:"
- @echo " clean : clean the build (removes OBJROOT)"
- @echo " configure: configure using CMake (inside OBJROOT)"
- @echo " build : build using vcbuild.exe (inside OBJROOT)"
- @echo " test : run the clang regression tests"
- @echo " install : configure, build, test and install"
-
-clean:
- del /s/q "$(OBJROOT)"
-
-configure:
- "$(CMAKE)" -E make_directory "$(OBJROOT)"
- cd "$(OBJROOT)"
- "$(CMAKE)" "-DCMAKE_INSTALL_PREFIX:=$(STAGEROOT)" \
- -DLLVM_TARGETS_TO_BUILD:=X86 \
- "-DCMAKE_CXX_FLAGS_RELEASE:STRING=$(CXXFLAGS)" \
- "-DCMAKE_CXX_STANDARD_LIBRARIES:STRING=$(CXXLIBS)" \
- -G "Visual Studio 9 2008" \
- "$(SRCROOT)\src"
-
-# FIXME: Only build clang.
-build: configure
- cd "$(OBJROOT)"
- "$(VCBUILD)" /M$(JOBS) LLVM.sln "$(TARGET)"
- "$(VCBUILD)" /M$(JOBS) INSTALL.vcproj "$(TARGET)"
-
-test: build
- cd "$(OBJROOT)"
- "$(VCBUILD)" /M$(JOBS) tools\clang\test\clang-test.vcproj "$(TARGET)"
-
-install: test
- "$(CMAKE)" -E make_directory "$(BINDEST)"
- xcopy /i/y "$(STAGEROOT)\bin\clang.exe" "$(BINDEST)"
More information about the llvm-branch-commits
mailing list