Implement BR_CC and BRTWOWAY_CC. This allows the removal of a rather nasty
[oota-llvm.git] / Makefile
index 64cef1643b165762ec704425ce264fe1b21b8d61..818128e8d73f4c1ce8e0012d2fd5035bcaefacbe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,27 +7,47 @@
 # 
 #===------------------------------------------------------------------------===#
 LEVEL = .
-DIRS = lib/System lib/Support utils lib tools 
+DIRS = lib/System lib/Support utils lib
 
-
-ifneq ($(MAKECMDGOALS),tools-only)
-DIRS += runtime
-OPTIONAL_DIRS = examples projects
+ifeq ($(MAKECMDGOALS),tools-only)
+DIRS += tools
+else
+  ifneq ($(MAKECMDGOALS),libs-only)
+    DIRS += tools runtime docs
+    OPTIONAL_DIRS = examples projects
+  endif
 endif
 
-EXTRA_DIST := llvm.spec include configure \
-             autoconf/AutoRegen.sh autoconf/LICENSE.TXT autoconf/README.TXT \
-             autoconf/aclocal.m4 autoconf/config.guess autoconf/config.sub \
-             autoconf/configure.ac autoconf/depcomp autoconf/install-sh \
-             autoconf/ltmain.sh autoconf/missing autoconf/mkinstalldirs \
-             autoconf/m4
+EXTRA_DIST := test llvm.spec include
+
 include $(LEVEL)/Makefile.common
 
-dist-hook::
-       @$(ECHO) Eliminating CVS directories from distribution
-       $(VERB) rm -rf `find $(TopDistDir) -type d -name CVS -print`
+# Specify options to pass to configure script when we're
+# running the dist-check target
+DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)
 
-test :: all
-       cd test; $(MAKE)
+.PHONY: debug-opt-prof
+debug-opt-prof:
+       $(Echo) Building Debug Version
+       $(Verb) $(MAKE)
+       $(Echo)
+       $(Echo) Building Optimized Version
+       $(Echo)
+       $(Verb) $(MAKE) ENABLE_OPTIMIZED=1
+       $(Echo)
+       $(Echo) Building Profiling Version
+       $(Echo)
+       $(Verb) $(MAKE) ENABLE_PROFILING=1
+
+dist-hook::
+       $(Echo) Eliminating files constructed by configure
+       $(Verb) $(RM) -f \
+         $(TopDistDir)/include/llvm/ADT/hash_map  \
+         $(TopDistDir)/include/llvm/ADT/hash_set  \
+         $(TopDistDir)/include/llvm/ADT/iterator  \
+         $(TopDistDir)/include/llvm/Config/config.h  \
+         $(TopDistDir)/include/llvm/Support/DataTypes.h  \
+         $(TopDistDir)/include/llvm/Support/ThreadSupport.h
 
 tools-only: all
+libs-only: all