blob: d2a4fbf0224f7bbe84d100d26cc62f4ca0e0832d [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 Spencer90f56ee2004-08-29 19:33:21 +000010DIRS = lib/System lib/Support utils lib tools
Chris Lattner2f7c9632001-06-06 20:29:01 +000011
Chris Lattner135dcc02004-02-03 23:05:24 +000012ifneq ($(MAKECMDGOALS),tools-only)
13DIRS += runtime
Reid Spencerb1a014f2004-08-24 16:32:21 +000014OPTIONAL_DIRS = examples projects
Chris Lattner135dcc02004-02-03 23:05:24 +000015endif
16
Reid Spencer4a9b5ff2004-10-26 07:05:09 +000017EXTRA_DIST := test llvm.spec include
18
Chris Lattner2f7c9632001-06-06 20:29:01 +000019include $(LEVEL)/Makefile.common
20
Reid Spencer33478272004-11-25 09:08:54 +000021.PHONY: debug-opt-prof
22debug-opt-prof:
23 $(Echo) Building Debug Version
24 $(Verb) $(MAKE)
25 $(Echo)
26 $(Echo) Building Optimized Version
27 $(Echo)
28 $(Verb) $(MAKE) ENABLE_OPTIMIZED=1
29 $(Echo)
30 $(Echo) Building Profiling Version
31 $(Echo)
32 $(Verb) $(MAKE) ENABLE_PROFILING=1
33
Reid Spencer100080c2004-10-25 08:27:37 +000034dist-hook::
Reid Spencerf88808a2004-10-30 09:19:36 +000035 $(Echo) Eliminating CVS directories from distribution
36 $(Verb) $(RM) -rf `find $(TopDistDir) -type d -name CVS -print`
37 $(Echo) Eliminating files constructed by configure
38 $(Verb) $(RM) -f \
Reid Spencer4a9b5ff2004-10-26 07:05:09 +000039 $(TopDistDir)/include/llvm/ADT/hash_map \
40 $(TopDistDir)/include/llvm/ADT/hash_set \
41 $(TopDistDir)/include/llvm/ADT/iterator \
42 $(TopDistDir)/include/llvm/Config/config.h \
43 $(TopDistDir)/include/llvm/Support/DataTypes.h \
44 $(TopDistDir)/include/llvm/Support/ThreadSupport.h
Reid Spencer100080c2004-10-25 08:27:37 +000045
Reid Spencerf88808a2004-10-30 09:19:36 +000046check ::
47 cd test; $(MAKE)
John Criswell48ecca62003-08-12 18:51:51 +000048
Chris Lattner6bd75a62004-02-03 22:56:40 +000049tools-only: all
Tanya Lattner9082d7a2004-11-07 04:59:52 +000050
51check-dejagnu:
Alkis Evlogimenoseb4dbfd2004-11-08 05:44:05 +000052 $(MAKE) -C test check-dejagnu TESTSUITE=$(TESTSUITE)