2003-10-21 06:26:57 +08:00
|
|
|
##===- ./Makefile ------------------------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
2001-06-07 04:29:01 +08:00
|
|
|
LEVEL = .
|
2003-10-06 03:28:27 +08:00
|
|
|
DIRS = lib/Support utils lib tools runtime
|
2003-06-11 21:55:44 +08:00
|
|
|
OPTIONAL_DIRS = projects
|
2001-06-07 04:29:01 +08:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
|
|
|
test :: all
|
|
|
|
cd test; $(MAKE)
|
2003-08-13 02:51:51 +08:00
|
|
|
|
|
|
|
distclean:: clean
|
|
|
|
$(VERB) $(RM) -rf $(LEVEL)/Makefile.config \
|
|
|
|
$(LEVEL)/include/Config/config.h \
|
|
|
|
$(LEVEL)/autoconf/autom4te.cache \
|
|
|
|
$(LEVEL)/config.log \
|
|
|
|
$(LEVEL)/TAGS
|
|
|
|
|
2003-10-22 02:08:10 +08:00
|
|
|
tools-only:
|
|
|
|
@for dir in lib/Support utils lib tools; do $(MAKE) -C $$dir; done
|
|
|
|
|
2003-10-08 07:44:10 +08:00
|
|
|
configure: autoconf/configure.ac autoconf/aclocal.m4
|
2004-01-13 15:09:56 +08:00
|
|
|
cd autoconf && aclocal && autoconf -o ../configure configure.ac
|
2003-10-08 01:12:11 +08:00
|
|
|
|
2003-10-08 07:44:10 +08:00
|
|
|
include/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4
|
2004-01-13 15:09:56 +08:00
|
|
|
autoheader -I autoconf autoconf/configure.ac
|
2003-10-08 07:44:10 +08:00
|
|
|
|
2004-01-23 05:54:51 +08:00
|
|
|
# Install support for llvm include files:
|
2003-12-11 02:41:20 +08:00
|
|
|
.PHONY: install-includes
|
|
|
|
|
|
|
|
install-includes:
|
|
|
|
$(MKDIR) $(includedir)/llvm
|
2004-01-22 07:28:03 +08:00
|
|
|
cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
|
2003-12-11 02:41:20 +08:00
|
|
|
|
|
|
|
install:: install-includes
|
|
|
|
|
2004-01-23 05:54:51 +08:00
|
|
|
# Build tags database for Emacs/Xemacs:
|
|
|
|
.PHONY: tags
|
|
|
|
|
|
|
|
TAGS: tags
|
|
|
|
|
|
|
|
all:: tags
|
|
|
|
|
|
|
|
tags:
|
|
|
|
$(ETAGS) $(ETAGSFLAGS) `find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h'`
|
|
|
|
|