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