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 | 6a8c290 | 2004-02-03 23:05:24 +0000 | [diff] [blame] | 10 | DIRS = lib/Support utils lib tools |
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 | |
Chris Lattner | 6a8c290 | 2004-02-03 23:05:24 +0000 | [diff] [blame] | 13 | ifneq ($(MAKECMDGOALS),tools-only) |
| 14 | DIRS += runtime |
| 15 | endif |
| 16 | |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 17 | include $(LEVEL)/Makefile.common |
| 18 | |
| 19 | test :: all |
| 20 | cd test; $(MAKE) |
John Criswell | d741bcf | 2003-08-12 18:51:51 +0000 | [diff] [blame] | 21 | |
| 22 | distclean:: clean |
| 23 | $(VERB) $(RM) -rf $(LEVEL)/Makefile.config \ |
| 24 | $(LEVEL)/include/Config/config.h \ |
| 25 | $(LEVEL)/autoconf/autom4te.cache \ |
| 26 | $(LEVEL)/config.log \ |
| 27 | $(LEVEL)/TAGS |
| 28 | |
Chris Lattner | 9cf662b | 2004-02-03 22:56:40 +0000 | [diff] [blame] | 29 | tools-only: all |
Brian Gaeke | c536545 | 2003-10-21 18:08:10 +0000 | [diff] [blame] | 30 | |
Brian Gaeke | 6fdaf4a | 2004-01-22 21:54:51 +0000 | [diff] [blame] | 31 | # Install support for llvm include files: |
Brian Gaeke | 265f0ec | 2003-12-10 18:41:20 +0000 | [diff] [blame] | 32 | .PHONY: install-includes |
| 33 | |
| 34 | install-includes: |
Brian Gaeke | 6c09696 | 2004-02-09 17:38:52 +0000 | [diff] [blame] | 35 | $(MKDIR) $(DESTDIR)$(includedir)/llvm |
Brian Gaeke | 67afaa1 | 2004-01-21 23:28:03 +0000 | [diff] [blame] | 36 | cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm |
Brian Gaeke | 89409b6 | 2004-02-10 01:10:01 +0000 | [diff] [blame] | 37 | ifneq ($(BUILD_SRC_ROOT),$(BUILD_OBJ_ROOT)) |
| 38 | cd $(BUILD_SRC_ROOT)/include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm |
| 39 | endif |
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 | |