1 ##===- ./Makefile ------------------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
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.
8 ##===----------------------------------------------------------------------===##
10 DIRS = lib/Support utils lib tools
11 OPTIONAL_DIRS = projects
13 ifneq ($(MAKECMDGOALS),tools-only)
18 include $(LEVEL)/Makefile.common
24 $(VERB) $(RM) -rf $(LEVEL)/Makefile.config \
25 $(LEVEL)/include/Config/config.h \
26 $(LEVEL)/autoconf/autom4te.cache \
32 configure: autoconf/configure.ac autoconf/aclocal.m4
33 cd autoconf && aclocal && autoconf -o ../configure configure.ac
35 include/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4
36 autoheader -I autoconf autoconf/configure.ac
38 # Install support for llvm include files:
39 .PHONY: install-includes
42 $(MKDIR) $(includedir)/llvm
43 cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
45 install:: install-includes
47 # Build tags database for Emacs/Xemacs:
55 $(ETAGS) $(ETAGSFLAGS) `find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h'`