blob: fec284d0727e9462787df623033a58fdb56e0d06 [file] [log] [blame]
Misha Brukman7426c892004-04-24 00:10:56 +00001#===- ./Makefile -------------------------------------------*- Makefile -*--===#
John Criswell4436c492003-10-20 22:26:57 +00002#
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#
Misha Brukman7426c892004-04-24 00:10:56 +00008#===------------------------------------------------------------------------===#
Chris Lattner2f7c9632001-06-06 20:29:01 +00009LEVEL = .
Reid Spencerfec4f802005-05-25 21:03:17 +000010DIRS = lib/System lib/Support utils lib
Chris Lattner2f7c9632001-06-06 20:29:01 +000011
Reid Spencerfec4f802005-05-25 21:03:17 +000012ifeq ($(MAKECMDGOALS),tools-only)
13DIRS += tools
14else
15 ifneq ($(MAKECMDGOALS),libs-only)
16 DIRS += runtime docs
17 OPTIONAL_DIRS = examples projects
18 endif
Chris Lattner135dcc02004-02-03 23:05:24 +000019endif
20
Reid Spencer4a9b5ff2004-10-26 07:05:09 +000021EXTRA_DIST := test llvm.spec include
22
Chris Lattner2f7c9632001-06-06 20:29:01 +000023include $(LEVEL)/Makefile.common
24
Reid Spencer13f51932005-05-24 02:33:20 +000025# Specify options to pass to configure script when we're
26# running the dist-check target
27DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)
28
Reid Spencer33478272004-11-25 09:08:54 +000029.PHONY: debug-opt-prof
30debug-opt-prof:
31 $(Echo) Building Debug Version
32 $(Verb) $(MAKE)
33 $(Echo)
34 $(Echo) Building Optimized Version
35 $(Echo)
36 $(Verb) $(MAKE) ENABLE_OPTIMIZED=1
37 $(Echo)
38 $(Echo) Building Profiling Version
39 $(Echo)
40 $(Verb) $(MAKE) ENABLE_PROFILING=1
41
Reid Spencer100080c2004-10-25 08:27:37 +000042dist-hook::
Reid Spencerf88808a2004-10-30 09:19:36 +000043 $(Echo) Eliminating files constructed by configure
44 $(Verb) $(RM) -f \
Reid Spencer4a9b5ff2004-10-26 07:05:09 +000045 $(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
Reid Spencer100080c2004-10-25 08:27:37 +000051
Chris Lattner6bd75a62004-02-03 22:56:40 +000052tools-only: all
Reid Spencerfec4f802005-05-25 21:03:17 +000053libs-only: all