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 tools
12 ifneq ($(MAKECMDGOALS),tools-only)
14 OPTIONAL_DIRS = examples projects
17 EXTRA_DIST := test llvm.spec include
19 include $(LEVEL)/Makefile.common
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)
25 .PHONY: debug-opt-prof
27 $(Echo) Building Debug Version
30 $(Echo) Building Optimized Version
32 $(Verb) $(MAKE) ENABLE_OPTIMIZED=1
34 $(Echo) Building Profiling Version
36 $(Verb) $(MAKE) ENABLE_PROFILING=1
39 $(Echo) Eliminating files constructed by configure
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