2004-04-24 00:10:56 +00:00
|
|
|
#===- ./Makefile -------------------------------------------*- Makefile -*--===#
|
2003-10-20 22:26:57 +00:00
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
2004-04-24 00:10:56 +00:00
|
|
|
#===------------------------------------------------------------------------===#
|
2001-06-06 20:29:01 +00:00
|
|
|
LEVEL = .
|
2004-02-03 23:05:24 +00:00
|
|
|
DIRS = lib/Support utils lib tools
|
2001-06-06 20:29:01 +00:00
|
|
|
|
2004-02-03 23:05:24 +00:00
|
|
|
ifneq ($(MAKECMDGOALS),tools-only)
|
|
|
|
DIRS += runtime
|
2004-04-16 15:57:02 +00:00
|
|
|
OPTIONAL_DIRS = projects
|
2004-02-03 23:05:24 +00:00
|
|
|
endif
|
|
|
|
|
2001-06-06 20:29:01 +00:00
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
|
|
|
test :: all
|
|
|
|
cd test; $(MAKE)
|
2003-08-12 18:51:51 +00:00
|
|
|
|
|
|
|
distclean:: clean
|
|
|
|
$(VERB) $(RM) -rf $(LEVEL)/Makefile.config \
|
|
|
|
$(LEVEL)/include/Config/config.h \
|
|
|
|
$(LEVEL)/autoconf/autom4te.cache \
|
|
|
|
$(LEVEL)/config.log \
|
|
|
|
$(LEVEL)/TAGS
|
|
|
|
|
2004-02-03 22:56:40 +00:00
|
|
|
tools-only: all
|
2003-10-21 18:08:10 +00:00
|
|
|
|
2004-01-22 21:54:51 +00:00
|
|
|
# Install support for llvm include files:
|
2003-12-10 18:41:20 +00:00
|
|
|
.PHONY: install-includes
|
|
|
|
|
|
|
|
install-includes:
|
2004-02-09 17:38:52 +00:00
|
|
|
$(MKDIR) $(DESTDIR)$(includedir)/llvm
|
2004-05-25 20:01:25 +00:00
|
|
|
cd include && find * -path '*/Internal' -prune -o '(' '!' '(' -name '*~' -o -name .cvsignore ')' -print ')' | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
|
2004-02-10 01:10:01 +00:00
|
|
|
ifneq ($(BUILD_SRC_ROOT),$(BUILD_OBJ_ROOT))
|
2004-05-25 20:01:25 +00:00
|
|
|
cd $(BUILD_SRC_ROOT)/include && find * -path '*/Internal' -prune -o '(' '!' '(' -name '*~' -o -name .cvsignore ')' -print ')' | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
|
2004-02-10 01:10:01 +00:00
|
|
|
endif
|
2003-12-10 18:41:20 +00:00
|
|
|
|
|
|
|
install:: install-includes
|
|
|
|
|
2004-01-22 21:54:51 +00:00
|
|
|
# Build tags database for Emacs/Xemacs:
|
|
|
|
.PHONY: tags
|
|
|
|
|
|
|
|
TAGS: tags
|
|
|
|
|
|
|
|
all:: tags
|
|
|
|
|
|
|
|
tags:
|
2004-06-11 03:10:27 +00:00
|
|
|
find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h' | $(ETAGS) $(ETAGSFLAGS) -
|
2004-01-22 21:54:51 +00:00
|
|
|
|