Misha Brukman | 7426c89 | 2004-04-24 00:10:56 +0000 | [diff] [blame] | 1 | #===- ./Makefile -------------------------------------------*- Makefile -*--===# |
John Criswell | 4436c49 | 2003-10-20 22:26:57 +0000 | [diff] [blame] | 2 | # |
| 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 Brukman | 7426c89 | 2004-04-24 00:10:56 +0000 | [diff] [blame] | 8 | #===------------------------------------------------------------------------===# |
Chris Lattner | 2f7c963 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 9 | LEVEL = . |
Reid Spencer | 90f56ee | 2004-08-29 19:33:21 +0000 | [diff] [blame] | 10 | DIRS = lib/System lib/Support utils lib tools |
Chris Lattner | 2f7c963 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 11 | |
Reid Spencer | 100080c | 2004-10-25 08:27:37 +0000 | [diff] [blame^] | 12 | |
Chris Lattner | 135dcc0 | 2004-02-03 23:05:24 +0000 | [diff] [blame] | 13 | ifneq ($(MAKECMDGOALS),tools-only) |
| 14 | DIRS += runtime |
Reid Spencer | b1a014f | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 15 | OPTIONAL_DIRS = examples projects |
Chris Lattner | 135dcc0 | 2004-02-03 23:05:24 +0000 | [diff] [blame] | 16 | endif |
| 17 | |
Reid Spencer | 100080c | 2004-10-25 08:27:37 +0000 | [diff] [blame^] | 18 | EXTRA_DIST := llvm.spec include configure \ |
| 19 | autoconf/AutoRegen.sh autoconf/LICENSE.TXT autoconf/README.TXT \ |
| 20 | autoconf/aclocal.m4 autoconf/config.guess autoconf/config.sub \ |
| 21 | autoconf/configure.ac autoconf/depcomp autoconf/install-sh \ |
| 22 | autoconf/ltmain.sh autoconf/missing autoconf/mkinstalldirs \ |
| 23 | autoconf/m4 |
Chris Lattner | 2f7c963 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 24 | include $(LEVEL)/Makefile.common |
| 25 | |
Reid Spencer | 100080c | 2004-10-25 08:27:37 +0000 | [diff] [blame^] | 26 | dist-hook:: |
| 27 | @$(ECHO) Eliminating CVS directories from distribution |
| 28 | $(VERB) rm -rf `find $(TopDistDir) -type d -name CVS -print` |
| 29 | |
Chris Lattner | 2f7c963 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 30 | test :: all |
| 31 | cd test; $(MAKE) |
John Criswell | 48ecca6 | 2003-08-12 18:51:51 +0000 | [diff] [blame] | 32 | |
Chris Lattner | 6bd75a6 | 2004-02-03 22:56:40 +0000 | [diff] [blame] | 33 | tools-only: all |