blob: f9b834b79dcef1450b3920fce75f93de841d2e4a [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
Chris Lattner9cf662b2004-02-03 22:56:40 +000025tools-only: DIRS = $(DIRS:runtime=)
26tools-only: all
Brian Gaekec5365452003-10-21 18:08:10 +000027
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 Gaeke6fdaf4a2004-01-22 21:54:51 +000034# Install support for llvm include files:
Brian Gaeke265f0ec2003-12-10 18:41:20 +000035.PHONY: install-includes
36
37install-includes:
38 $(MKDIR) $(includedir)/llvm
Brian Gaeke67afaa12004-01-21 23:28:03 +000039 cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
Brian Gaeke265f0ec2003-12-10 18:41:20 +000040
41install:: install-includes
42
Brian Gaeke6fdaf4a2004-01-22 21:54:51 +000043# Build tags database for Emacs/Xemacs:
44.PHONY: tags
45
46TAGS: tags
47
48all:: tags
49
50tags:
51 $(ETAGS) $(ETAGSFLAGS) `find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h'`
52