1 #===- ./Makefile -------------------------------------------*- Makefile -*--===#
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 #===------------------------------------------------------------------------===#
10 DIRS = lib/System lib/Support utils lib
12 ifeq ($(MAKECMDGOALS),tools-only)
15 ifneq ($(MAKECMDGOALS),libs-only)
16 DIRS += tools runtime docs
17 OPTIONAL_DIRS = examples projects
21 EXTRA_DIST := test llvm.spec include
23 include $(LEVEL)/Makefile.common
25 # Specify options to pass to configure script when we're
26 # running the dist-check target
27 DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)
29 .PHONY: debug-opt-prof
31 $(Echo) Building Debug Version
34 $(Echo) Building Optimized Version
36 $(Verb) $(MAKE) ENABLE_OPTIMIZED=1
38 $(Echo) Building Profiling Version
40 $(Verb) $(MAKE) ENABLE_PROFILING=1
43 $(Echo) Eliminating files constructed by configure
45 $(TopDistDir)/include/llvm/ADT/hash_map \
46 $(TopDistDir)/include/llvm/ADT/hash_set \
47 $(TopDistDir)/include/llvm/ADT/iterator \
48 $(TopDistDir)/include/llvm/Config/config.h \
49 $(TopDistDir)/include/llvm/Support/DataTypes.h \
50 $(TopDistDir)/include/llvm/Support/ThreadSupport.h
55 #------------------------------------------------------------------------
56 # Make sure the generated headers are up-to-date. This must be kept in
57 # sync with the AC_CONFIG_HEADER invocations in autoconf/configure.ac
58 #------------------------------------------------------------------------
60 include/llvm/Config/config.h \
61 include/llvm/Support/DataTypes.h \
62 include/llvm/ADT/hash_map \
63 include/llvm/ADT/hash_set \
64 include/llvm/ADT/iterator
65 FilesToConfigPATH := $(addprefix $(LLVM_OBJ_ROOT)/,$(FilesToConfig))
67 all-local:: $(FilesToConfigPATH)
68 $(FilesToConfigPATH) : $(LLVM_OBJ_ROOT)/% : $(LLVM_SRC_ROOT)/%.in
69 $(Echo) Regenerating $*
70 $(Verb) cd $(LLVM_OBJ_ROOT) && $(ConfigStatusScript) $*
71 .PRECIOUS: $(FilesToConfigPATH)