blob: cd7e52131dea47de28e56b8888b754e1a5f2ea77 [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
Reid Spencer151f8ba2004-10-25 08:27:37 +000012
Chris Lattner6a8c2902004-02-03 23:05:24 +000013ifneq ($(MAKECMDGOALS),tools-only)
14DIRS += runtime
Reid Spencer5f285392004-08-24 16:32:21 +000015OPTIONAL_DIRS = examples projects
Chris Lattner6a8c2902004-02-03 23:05:24 +000016endif
17
Reid Spencer90c29492004-10-26 07:05:09 +000018EXTRA_DIST := test llvm.spec include
19
Chris Lattner00950542001-06-06 20:29:01 +000020include $(LEVEL)/Makefile.common
21
Reid Spencer151f8ba2004-10-25 08:27:37 +000022dist-hook::
Reid Spencercc2d1e22004-10-30 09:19:36 +000023 $(Echo) Eliminating CVS directories from distribution
24 $(Verb) $(RM) -rf `find $(TopDistDir) -type d -name CVS -print`
25 $(Echo) Eliminating files constructed by configure
26 $(Verb) $(RM) -f \
Reid Spencer90c29492004-10-26 07:05:09 +000027 $(TopDistDir)/include/llvm/ADT/hash_map \
28 $(TopDistDir)/include/llvm/ADT/hash_set \
29 $(TopDistDir)/include/llvm/ADT/iterator \
30 $(TopDistDir)/include/llvm/Config/config.h \
31 $(TopDistDir)/include/llvm/Support/DataTypes.h \
32 $(TopDistDir)/include/llvm/Support/ThreadSupport.h
Reid Spencer151f8ba2004-10-25 08:27:37 +000033
Reid Spencercc2d1e22004-10-30 09:19:36 +000034check ::
35 cd test; $(MAKE)
John Criswelld741bcf2003-08-12 18:51:51 +000036
Chris Lattner9cf662b2004-02-03 22:56:40 +000037tools-only: all
Tanya Lattner7a7cb4c2004-11-07 04:59:52 +000038
39check-dejagnu:
Alkis Evlogimenos440add22004-11-08 05:44:05 +000040 $(MAKE) -C test check-dejagnu TESTSUITE=$(TESTSUITE)