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 = . |
Chris Lattner | 135dcc0 | 2004-02-03 23:05:24 +0000 | [diff] [blame] | 10 | DIRS = lib/Support utils lib tools |
Chris Lattner | 2f7c963 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 11 | |
Chris Lattner | 135dcc0 | 2004-02-03 23:05:24 +0000 | [diff] [blame] | 12 | ifneq ($(MAKECMDGOALS),tools-only) |
| 13 | DIRS += runtime |
Brian Gaeke | 7850dd68 | 2004-04-16 15:57:02 +0000 | [diff] [blame] | 14 | OPTIONAL_DIRS = projects |
Chris Lattner | 135dcc0 | 2004-02-03 23:05:24 +0000 | [diff] [blame] | 15 | endif |
| 16 | |
Chris Lattner | 2f7c963 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 17 | include $(LEVEL)/Makefile.common |
| 18 | |
| 19 | test :: all |
| 20 | cd test; $(MAKE) |
John Criswell | 48ecca6 | 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 | 6bd75a6 | 2004-02-03 22:56:40 +0000 | [diff] [blame] | 29 | tools-only: all |
Brian Gaeke | 030474f | 2003-10-21 18:08:10 +0000 | [diff] [blame] | 30 | |
Brian Gaeke | 83d485c | 2004-01-22 21:54:51 +0000 | [diff] [blame] | 31 | # Install support for llvm include files: |
Brian Gaeke | f248474 | 2003-12-10 18:41:20 +0000 | [diff] [blame] | 32 | .PHONY: install-includes |
| 33 | |
| 34 | install-includes: |
Brian Gaeke | 12705d5 | 2004-02-09 17:38:52 +0000 | [diff] [blame] | 35 | $(MKDIR) $(DESTDIR)$(includedir)/llvm |
Brian Gaeke | adfa73d | 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 | c6d8be1 | 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 | f248474 | 2003-12-10 18:41:20 +0000 | [diff] [blame] | 40 | |
| 41 | install:: install-includes |
| 42 | |
Brian Gaeke | 83d485c | 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 | |