projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a trivial but handy function to efficiently return the machine
[oota-llvm.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index c61b7e5ef487752f52027ac3bad7dcb814045e98..d9786d2ac051cdd61f25df5115684557a4d5e254 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,8
+2,8
@@
#
# The LLVM Compiler Infrastructure
#
#
# The LLVM Compiler Infrastructure
#
-# This file
was developed by the LLVM research group and is distributed under
-#
the University of Illinois Open Source
License. See LICENSE.TXT for details.
+# This file
is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
#
#===------------------------------------------------------------------------===#
@@
-19,8
+19,8
@@
LEVEL := .
#
DIRS := lib/System lib/Support utils lib/VMCore lib tools/llvm-config \
tools runtime docs
#
DIRS := lib/System lib/Support utils lib/VMCore lib tools/llvm-config \
tools runtime docs
-
-OPTIONAL_DIRS := examples projects
+
+OPTIONAL_DIRS := examples projects
bindings
EXTRA_DIST := test llvm.spec include win32 Xcode
include $(LEVEL)/Makefile.config
EXTRA_DIST := test llvm.spec include win32 Xcode
include $(LEVEL)/Makefile.config
@@
-37,6
+37,11
@@
ifeq ($(MAKECMDGOALS),libs-only)
OPTIONAL_DIRS :=
endif
OPTIONAL_DIRS :=
endif
+ifeq ($(MAKECMDGOALS),install-libs)
+ DIRS := $(filter-out tools runtime docs, $(DIRS))
+ OPTIONAL_DIRS := $(filter bindings, $(OPTIONAL_DIRS))
+endif
+
ifeq ($(MAKECMDGOALS),tools-only)
DIRS := $(filter-out runtime docs, $(DIRS))
OPTIONAL_DIRS :=
ifeq ($(MAKECMDGOALS),tools-only)
DIRS := $(filter-out runtime docs, $(DIRS))
OPTIONAL_DIRS :=
@@
-46,7
+51,7
@@
endif
# build LLVM.
ifeq ($(MAKECMDGOALS),install)
DIRS := $(filter-out utils, $(DIRS))
# build LLVM.
ifeq ($(MAKECMDGOALS),install)
DIRS := $(filter-out utils, $(DIRS))
- OPTIONAL_DIRS :=
+ OPTIONAL_DIRS :=
$(filter bindings, $(OPTIONAL_DIRS))
endif
# Include the main makefile machinery.
endif
# Include the main makefile machinery.
@@
-81,6
+86,7
@@
dist-hook::
tools-only: all
libs-only: all
tools-only: all
libs-only: all
+install-libs: install
#------------------------------------------------------------------------
# Make sure the generated headers are up-to-date. This must be kept in
#------------------------------------------------------------------------
# Make sure the generated headers are up-to-date. This must be kept in