John Criswell | e488e93 | 2003-10-20 22:26:57 +0000 | [diff] [blame] | 1 | ##===- ./Makefile ------------------------------------------*- Makefile -*-===## |
| 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 | # |
| 8 | ##===----------------------------------------------------------------------===## |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 9 | LEVEL = . |
Chris Lattner | 091bbba | 2003-10-05 19:28:27 +0000 | [diff] [blame] | 10 | DIRS = lib/Support utils lib tools runtime |
John Criswell | 8bff509 | 2003-06-11 13:55:44 +0000 | [diff] [blame] | 11 | OPTIONAL_DIRS = projects |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 12 | |
| 13 | include $(LEVEL)/Makefile.common |
| 14 | |
| 15 | test :: all |
| 16 | cd test; $(MAKE) |
John Criswell | d741bcf | 2003-08-12 18:51:51 +0000 | [diff] [blame] | 17 | |
| 18 | distclean:: clean |
| 19 | $(VERB) $(RM) -rf $(LEVEL)/Makefile.config \ |
| 20 | $(LEVEL)/include/Config/config.h \ |
| 21 | $(LEVEL)/autoconf/autom4te.cache \ |
| 22 | $(LEVEL)/config.log \ |
| 23 | $(LEVEL)/TAGS |
| 24 | |
Chris Lattner | 9cf662b | 2004-02-03 22:56:40 +0000 | [diff] [blame^] | 25 | tools-only: DIRS = $(DIRS:runtime=) |
| 26 | tools-only: all |
Brian Gaeke | c536545 | 2003-10-21 18:08:10 +0000 | [diff] [blame] | 27 | |
Brian Gaeke | e9b5090 | 2003-10-07 23:44:10 +0000 | [diff] [blame] | 28 | configure: autoconf/configure.ac autoconf/aclocal.m4 |
Brian Gaeke | f292021 | 2004-01-13 07:09:56 +0000 | [diff] [blame] | 29 | cd autoconf && aclocal && autoconf -o ../configure configure.ac |
Brian Gaeke | 7528343 | 2003-10-07 17:12:11 +0000 | [diff] [blame] | 30 | |
Brian Gaeke | e9b5090 | 2003-10-07 23:44:10 +0000 | [diff] [blame] | 31 | include/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4 |
Brian Gaeke | f292021 | 2004-01-13 07:09:56 +0000 | [diff] [blame] | 32 | autoheader -I autoconf autoconf/configure.ac |
Brian Gaeke | e9b5090 | 2003-10-07 23:44:10 +0000 | [diff] [blame] | 33 | |
Brian Gaeke | 6fdaf4a | 2004-01-22 21:54:51 +0000 | [diff] [blame] | 34 | # Install support for llvm include files: |
Brian Gaeke | 265f0ec | 2003-12-10 18:41:20 +0000 | [diff] [blame] | 35 | .PHONY: install-includes |
| 36 | |
| 37 | install-includes: |
| 38 | $(MKDIR) $(includedir)/llvm |
Brian Gaeke | 67afaa1 | 2004-01-21 23:28:03 +0000 | [diff] [blame] | 39 | cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm |
Brian Gaeke | 265f0ec | 2003-12-10 18:41:20 +0000 | [diff] [blame] | 40 | |
| 41 | install:: install-includes |
| 42 | |
Brian Gaeke | 6fdaf4a | 2004-01-22 21:54:51 +0000 | [diff] [blame] | 43 | # Build tags database for Emacs/Xemacs: |
| 44 | .PHONY: tags |
| 45 | |
| 46 | TAGS: tags |
| 47 | |
| 48 | all:: tags |
| 49 | |
| 50 | tags: |
| 51 | $(ETAGS) $(ETAGSFLAGS) `find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h'` |
| 52 | |