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
12 ifneq ($(MAKECMDGOALS),tools-only)
14 OPTIONAL_DIRS = projects
17 include $(LEVEL)/Makefile.common
23 $(VERB) $(RM) -rf $(LEVEL)/Makefile.config \
24 $(LEVEL)/include/Config/config.h \
25 $(LEVEL)/autoconf/autom4te.cache \
31 # Install support for llvm include files:
32 .PHONY: install-includes
35 $(MKDIR) $(DESTDIR)$(includedir)/llvm
36 cd include && find * -path '*/Internal' -prune -o '(' '!' '(' -name '*~' -o -name .cvsignore ')' -print ')' | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
37 ifneq ($(BUILD_SRC_ROOT),$(BUILD_OBJ_ROOT))
38 cd $(BUILD_SRC_ROOT)/include && find * -path '*/Internal' -prune -o '(' '!' '(' -name '*~' -o -name .cvsignore ')' -print ')' | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
41 install:: install-includes
43 # Build tags database for Emacs/Xemacs:
51 find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h' | $(ETAGS) $(ETAGSFLAGS) -