Makefile revision 6a8c2907b0721ce53ad6887be5b10eef50dac060
1e488e9360b1a865ba604330965edcf139e590b65John Criswell##===- ./Makefile ------------------------------------------*- Makefile -*-===##
2e488e9360b1a865ba604330965edcf139e590b65John Criswell# 
3e488e9360b1a865ba604330965edcf139e590b65John Criswell#                     The LLVM Compiler Infrastructure
4e488e9360b1a865ba604330965edcf139e590b65John Criswell#
5e488e9360b1a865ba604330965edcf139e590b65John Criswell# This file was developed by the LLVM research group and is distributed under
6e488e9360b1a865ba604330965edcf139e590b65John Criswell# the University of Illinois Open Source License. See LICENSE.TXT for details.
7e488e9360b1a865ba604330965edcf139e590b65John Criswell# 
8e488e9360b1a865ba604330965edcf139e590b65John Criswell##===----------------------------------------------------------------------===##
9009505452b713ed2e3a8e99c5545a6e721c65495Chris LattnerLEVEL = .
106a8c2907b0721ce53ad6887be5b10eef50dac060Chris LattnerDIRS = lib/Support utils lib tools 
118bff509803b2e18e355bd278820f5a7fcc643fc1John CriswellOPTIONAL_DIRS = projects
12009505452b713ed2e3a8e99c5545a6e721c65495Chris Lattner
136a8c2907b0721ce53ad6887be5b10eef50dac060Chris Lattnerifneq ($(MAKECMDGOALS),tools-only)
146a8c2907b0721ce53ad6887be5b10eef50dac060Chris LattnerDIRS += runtime
156a8c2907b0721ce53ad6887be5b10eef50dac060Chris Lattnerendif
166a8c2907b0721ce53ad6887be5b10eef50dac060Chris Lattner
176a8c2907b0721ce53ad6887be5b10eef50dac060Chris Lattner
18009505452b713ed2e3a8e99c5545a6e721c65495Chris Lattnerinclude $(LEVEL)/Makefile.common
19009505452b713ed2e3a8e99c5545a6e721c65495Chris Lattner
20009505452b713ed2e3a8e99c5545a6e721c65495Chris Lattnertest :: all
21009505452b713ed2e3a8e99c5545a6e721c65495Chris Lattner	cd test; $(MAKE)
22d741bcfa1612e418216450b1893bb0763341f24dJohn Criswell
23d741bcfa1612e418216450b1893bb0763341f24dJohn Criswelldistclean:: clean
24d741bcfa1612e418216450b1893bb0763341f24dJohn Criswell	$(VERB) $(RM) -rf $(LEVEL)/Makefile.config \
25d741bcfa1612e418216450b1893bb0763341f24dJohn Criswell	                  $(LEVEL)/include/Config/config.h \
26d741bcfa1612e418216450b1893bb0763341f24dJohn Criswell	                  $(LEVEL)/autoconf/autom4te.cache \
27d741bcfa1612e418216450b1893bb0763341f24dJohn Criswell	                  $(LEVEL)/config.log \
28d741bcfa1612e418216450b1893bb0763341f24dJohn Criswell	                  $(LEVEL)/TAGS
29d741bcfa1612e418216450b1893bb0763341f24dJohn Criswell
309cf662b367795f07ddf2c6deca33839b6581548bChris Lattnertools-only: all
31c536545a4373e0cbf2f7ab1804b64741fb5aa2ffBrian Gaeke
32e9b509057b0e32f150adee633899b6aebf7e21bcBrian Gaekeconfigure: autoconf/configure.ac autoconf/aclocal.m4
33f29202149ef7cc6f7ff538d134d657ee6f034255Brian Gaeke	cd autoconf && aclocal && autoconf -o ../configure configure.ac
347528343cbd35491d61f4d66bf3f97445173afc7eBrian Gaeke
35e9b509057b0e32f150adee633899b6aebf7e21bcBrian Gaekeinclude/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4
36f29202149ef7cc6f7ff538d134d657ee6f034255Brian Gaeke	autoheader -I autoconf autoconf/configure.ac
37e9b509057b0e32f150adee633899b6aebf7e21bcBrian Gaeke
386fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeke# Install support for llvm include files:
39265f0ec5599b699e6c5360fd4c36c5b2056d1089Brian Gaeke.PHONY: install-includes
40265f0ec5599b699e6c5360fd4c36c5b2056d1089Brian Gaeke
41265f0ec5599b699e6c5360fd4c36c5b2056d1089Brian Gaekeinstall-includes:
42265f0ec5599b699e6c5360fd4c36c5b2056d1089Brian Gaeke	$(MKDIR) $(includedir)/llvm
4367afaa1899bb51ca89a0ae40c1608802dfb2da74Brian Gaeke	cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
44265f0ec5599b699e6c5360fd4c36c5b2056d1089Brian Gaeke
45265f0ec5599b699e6c5360fd4c36c5b2056d1089Brian Gaekeinstall:: install-includes
46265f0ec5599b699e6c5360fd4c36c5b2056d1089Brian Gaeke
476fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeke# Build tags database for Emacs/Xemacs:
486fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeke.PHONY: tags
496fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeke
506fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian GaekeTAGS: tags
516fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeke
526fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaekeall:: tags
536fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeke
546fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeketags:
556fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeke	$(ETAGS) $(ETAGSFLAGS) `find $(wildcard $(SourceDir)/include $(SourceDir)/lib $(SourceDir)/tools) -name '*.cpp' -o -name '*.h'`
566fdaf4a219cd8ae3ff51fd5b731f8fce1b97d336Brian Gaeke
57