Lines Matching +full:llvm +full:- +full:config
1 #===- ./Makefile -------------------------------------------*- Makefile -*--===#
3 # The LLVM Compiler Infrastructure
8 #===------------------------------------------------------------------------===#
12 # Top-Level LLVM Build Stages:
16 # 4. Build libs, which are needed by llvm-config.
17 # 5. Build llvm-config, which determines inter-lib dependencies for tools.
20 # When cross-compiling, there are some things (tablegen) that need to
24 # "llvmCore", then this is an "Apple-style" build; search for
25 # "Apple-style" in the comments for more info. Anything else is a
27 ifneq ($(findstring llvmCore, $(RC_ProjectName)),llvmCore) # Normal build (not "Apple-style").
33 DIRS := lib/Support lib/TableGen utils lib/VMCore lib tools/llvm-shlib \
34 tools/llvm-config tools runtime docs unittests
42 EXTRA_DIST := test unittests llvm.spec include win32 Xcode
44 include $(LEVEL)/Makefile.config
47 DIRS := $(filter-out tools/llvm-shlib, $(DIRS))
51 DIRS := $(filter-out docs, $(DIRS))
54 ifeq ($(MAKECMDGOALS),libs-only)
55 DIRS := $(filter-out tools runtime docs, $(DIRS))
59 ifeq ($(MAKECMDGOALS),install-libs)
60 DIRS := $(filter-out tools runtime docs, $(DIRS))
64 ifeq ($(MAKECMDGOALS),tools-only)
65 DIRS := $(filter-out runtime docs, $(DIRS))
69 ifeq ($(MAKECMDGOALS),install-clang)
77 ifeq ($(MAKECMDGOALS),install-clang-c)
79 tools/clang/tools/libclang tools/clang/tools/c-index-test \
80 tools/clang/include/clang-c
85 ifeq ($(MAKECMDGOALS),clang-only)
86 DIRS := $(filter-out tools docs unittests, $(DIRS)) \
92 DIRS := $(filter-out tools runtime docs, $(DIRS)) utils unittests
104 DIRS := $(filter-out unittests, $(DIRS))
107 # If we're cross-compiling, build the build-hosted tools first
109 all:: cross-compile-build-tools
112 $(Verb) rm -rf BuildTools
114 cross-compile-build-tools:
115 $(Verb) if [ ! -f BuildTools/Makefile ]; then \
120 $(PROJ_SRC_DIR)/configure --build=$(BUILD_TRIPLE) \
121 --host=$(BUILD_TRIPLE) --target=$(BUILD_TRIPLE) \
122 --disable-polly ; \
126 $(MAKE) -C BuildTools \
143 # running the dist-check target
144 DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)
146 .PHONY: debug-opt-prof
147 debug-opt-prof:
159 dist-hook::
161 $(Verb) $(RM) -f \
162 $(TopDistDir)/include/llvm/Config/config.h \
163 $(TopDistDir)/include/llvm/Support/DataTypes.h
165 clang-only: all
166 tools-only: all
167 libs-only: all
168 install-clang: install
169 install-clang-c: install
170 install-libs: install
174 clean-diagnostics:
175 $(Verb) rm -f $(LLVM_OBJ_ROOT)/$(BuildMode)/diags
176 .PHONY: clean-diagnostics
178 all-local:: clean-diagnostics
181 #------------------------------------------------------------------------
182 # Make sure the generated headers are up-to-date. This must be kept in
184 #------------------------------------------------------------------------
186 include/llvm/Config/config.h \
187 include/llvm/Config/Targets.def \
188 include/llvm/Config/AsmPrinters.def \
189 include/llvm/Config/AsmParsers.def \
190 include/llvm/Config/Disassemblers.def \
191 include/llvm/Support/DataTypes.h
194 all-local:: $(FilesToConfigPATH)
209 $(Echo) '*****' configure with --enable-optimized.
211 $(Verb) if test -s $(LLVM_OBJ_ROOT)/$(BuildMode)/diags; then \
212 $(LLVM_SRC_ROOT)/utils/show-diagnostics \
219 check-llvm2cpp:
222 srpm: $(LLVM_OBJ_ROOT)/llvm.spec
223 rpmbuild -bs $(LLVM_OBJ_ROOT)/llvm.spec
225 rpm: $(LLVM_OBJ_ROOT)/llvm.spec
226 rpmbuild -bb --target $(TARGET_TRIPLE) $(LLVM_OBJ_ROOT)/llvm.spec
228 show-footprint:
229 $(Verb) du -sk $(LibDir)
230 $(Verb) du -sk $(ToolDir)
231 $(Verb) du -sk $(ExmplDir)
232 $(Verb) du -sk $(ObjDir)
234 build-for-llvm-top:
235 $(Verb) if test ! -f ./config.status ; then \
236 ./configure --prefix="$(LLVM_TOP)/install" \
237 --with-llvm-gcc="$(LLVM_TOP)/llvm-gcc" ; \
239 $(Verb) $(MAKE) tools-only
242 SVN-UPDATE-OPTIONS =
244 SUB-SVN-DIRS = $(AWK) '/\?\ \ \ \ \ \ / {print $$2}' \
249 $(SVN) $(SVN-UPDATE-OPTIONS) update $(LLVM_SRC_ROOT)
250 @ $(SVN) status $(LLVM_SRC_ROOT) | $(SUB-SVN-DIRS) | xargs $(SVN) $(SVN-UPDATE-OPTIONS) update
252 happiness: update all check-all
260 else # Building "Apple-style."
261 # In an Apple-style build, once configuration is done, lines marked
262 # "Apple-style" are removed with sed! Please don't remove these!
263 # Look for the string "Apple-style" in utils/buildit/build_llvm.
264 include $(shell find . -name GNUmakefile) # Building "Apple-style."
265 endif # Building "Apple-style."