blob: a3fc51f1c88d1671a4debd566b6d765eeafd8a41 [file] [log] [blame]
John Criswelle488e932003-10-20 22:26:57 +00001##===- ./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 Lattner00950542001-06-06 20:29:01 +00009LEVEL = .
Chris Lattner091bbba2003-10-05 19:28:27 +000010DIRS = lib/Support utils lib tools runtime
John Criswell8bff5092003-06-11 13:55:44 +000011OPTIONAL_DIRS = projects
Chris Lattner00950542001-06-06 20:29:01 +000012
13include $(LEVEL)/Makefile.common
14
15test :: all
16 cd test; $(MAKE)
John Criswelld741bcf2003-08-12 18:51:51 +000017
18distclean:: 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 Gaekec5365452003-10-21 18:08:10 +000025tools-only:
26 @for dir in lib/Support utils lib tools; do $(MAKE) -C $$dir; done
27
Brian Gaekee9b50902003-10-07 23:44:10 +000028configure: autoconf/configure.ac autoconf/aclocal.m4
Brian Gaekef2920212004-01-13 07:09:56 +000029 cd autoconf && aclocal && autoconf -o ../configure configure.ac
Brian Gaeke75283432003-10-07 17:12:11 +000030
Brian Gaekee9b50902003-10-07 23:44:10 +000031include/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4
Brian Gaekef2920212004-01-13 07:09:56 +000032 autoheader -I autoconf autoconf/configure.ac
Brian Gaekee9b50902003-10-07 23:44:10 +000033
Brian Gaeke265f0ec2003-12-10 18:41:20 +000034# Install support for llvm include files.
35
36.PHONY: install-includes
37
38install-includes:
39 $(MKDIR) $(includedir)/llvm
40 cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(includedir)/llvm
41
42install:: install-includes
43