We'll need this soon as well
[oota-llvm.git] / Makefile
index 6f31665eb68344ac847b6be36dc7b67f86034dcb..71534d16f04ab68fb795edd6e1ca53c983999db0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,25 @@
 LEVEL = .
-DIRS = lib/Support utils lib tools
+DIRS = lib/Support utils lib tools runtime
 OPTIONAL_DIRS = projects
 
 include $(LEVEL)/Makefile.common
 
 test :: all
        cd test; $(MAKE)
+
+distclean:: clean
+       $(VERB) $(RM) -rf $(LEVEL)/Makefile.config \
+                         $(LEVEL)/include/Config/config.h \
+                         $(LEVEL)/autoconf/autom4te.cache \
+                         $(LEVEL)/config.log \
+                         $(LEVEL)/TAGS
+
+AUTOCONF = autoconf
+AUTOHEADER = autoheader
+
+configure: autoconf/configure.ac autoconf/aclocal.m4
+       cd autoconf && $(AUTOCONF) -o ../configure configure.ac
+
+include/Config/config.h.in: autoconf/configure.ac autoconf/aclocal.m4
+       $(AUTOHEADER) -I autoconf autoconf/configure.ac
+