| 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 |  | 
| Brian Gaeke | c536545 | 2003-10-21 18:08:10 +0000 | [diff] [blame] | 25 | tools-only: | 
 | 26 | 	@for dir in lib/Support utils lib tools; do $(MAKE) -C $$dir; done | 
 | 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 | 265f0ec | 2003-12-10 18:41:20 +0000 | [diff] [blame] | 34 | # Install support for llvm include files. | 
 | 35 |  | 
 | 36 | .PHONY: install-includes | 
 | 37 |  | 
 | 38 | install-includes: | 
 | 39 | 	$(MKDIR) $(includedir)/llvm | 
| Brian Gaeke | 67afaa1 | 2004-01-21 23:28:03 +0000 | [diff] [blame^] | 40 | 	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] | 41 |  | 
 | 42 | install:: install-includes | 
 | 43 |  |