blob: d221175a98b5b84967ac4f971105bc8c5ceb4d92 [file] [log] [blame]
Misha Brukman6d5ab862004-04-24 00:10:56 +00001#===- ./Makefile -------------------------------------------*- Makefile -*--===#
John Criswelle488e932003-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 Brukman6d5ab862004-04-24 00:10:56 +00008#===------------------------------------------------------------------------===#
Chris Lattner00950542001-06-06 20:29:01 +00009LEVEL = .
Reid Spencerf13562f2004-08-29 19:33:21 +000010DIRS = lib/System lib/Support utils lib tools
Chris Lattner00950542001-06-06 20:29:01 +000011
Chris Lattner6a8c2902004-02-03 23:05:24 +000012ifneq ($(MAKECMDGOALS),tools-only)
Reid Spencer513b9212004-11-29 04:57:55 +000013DIRS += runtime docs
Reid Spencer5f285392004-08-24 16:32:21 +000014OPTIONAL_DIRS = examples projects
Chris Lattner6a8c2902004-02-03 23:05:24 +000015endif
16
Reid Spencer90c29492004-10-26 07:05:09 +000017EXTRA_DIST := test llvm.spec include
18
Chris Lattner00950542001-06-06 20:29:01 +000019include $(LEVEL)/Makefile.common
20
Reid Spencer45eeed92005-05-24 02:33:20 +000021# Specify options to pass to configure script when we're
22# running the dist-check target
23DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)
24
Reid Spencerdf561f42004-11-25 09:08:54 +000025.PHONY: debug-opt-prof
26debug-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
Reid Spencer151f8ba2004-10-25 08:27:37 +000038dist-hook::
Reid Spencercc2d1e22004-10-30 09:19:36 +000039 $(Echo) Eliminating files constructed by configure
40 $(Verb) $(RM) -f \
Reid Spencer90c29492004-10-26 07:05:09 +000041 $(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
Reid Spencer151f8ba2004-10-25 08:27:37 +000047
Chris Lattner9cf662b2004-02-03 22:56:40 +000048tools-only: all