OSDN Git Service

Two dist-check related changes:
[android-x86/external-llvm.git] / Makefile
1 #===- ./Makefile -------------------------------------------*- Makefile -*--===#
2
3 #                     The LLVM Compiler Infrastructure
4 #
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.
7
8 #===------------------------------------------------------------------------===#
9 LEVEL = .
10 DIRS = lib/System lib/Support utils lib tools 
11
12 ifneq ($(MAKECMDGOALS),tools-only)
13 DIRS += runtime docs
14 OPTIONAL_DIRS = examples projects
15 endif
16
17 EXTRA_DIST := test llvm.spec include
18
19 include $(LEVEL)/Makefile.common
20
21 # Specify options to pass to configure script when we're
22 # running the dist-check target
23 DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)
24
25 .PHONY: debug-opt-prof
26 debug-opt-prof:
27         $(Echo) Building Debug Version
28         $(Verb) $(MAKE)
29         $(Echo)
30         $(Echo) Building Optimized Version
31         $(Echo)
32         $(Verb) $(MAKE) ENABLE_OPTIMIZED=1
33         $(Echo)
34         $(Echo) Building Profiling Version
35         $(Echo)
36         $(Verb) $(MAKE) ENABLE_PROFILING=1
37
38 dist-hook::
39         $(Echo) Eliminating files constructed by configure
40         $(Verb) $(RM) -f \
41           $(TopDistDir)/include/llvm/ADT/hash_map  \
42           $(TopDistDir)/include/llvm/ADT/hash_set  \
43           $(TopDistDir)/include/llvm/ADT/iterator  \
44           $(TopDistDir)/include/llvm/Config/config.h  \
45           $(TopDistDir)/include/llvm/Support/DataTypes.h  \
46           $(TopDistDir)/include/llvm/Support/ThreadSupport.h
47
48 tools-only: all