Ok, return an explicit path to the shared object, unbreaking code generator
[oota-llvm.git] / Makefile
index 34bdc600e27dd90798f4b4add5e7fed545a21c16..71534d16f04ab68fb795edd6e1ca53c983999db0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,25 @@
 LEVEL = .
-DIRS = utils/Burg 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
+