added --disable-libiberty configure flag to not include xmalloc.o in libfirm.a
[libfirm] / MakeTargets
index f51c33a..3cf04bd 100644 (file)
@@ -15,7 +15,7 @@ ifeq ($(strip $(OFILES)),)
        >$@
 else
        rm -f $@
-       $(LD) $(LDFLAGS) -r -o $@ $^
+       $(LD) $(LDFLAGS)  -r -o $@ $^
 endif
 
 clean: subdir_clean local_clean
@@ -35,14 +35,6 @@ else
        $(CC) -M $(DEFS) $(CPPFLAGS) $(filter %.c,$^) >.depend || { $(RM) .depend; false; }
 endif
 
-autodoc_xref: subdir_autodoc_xref local_autodoc_xref
-.PHONY: local_autodoc_xref
-local_autodoc_xref: $(LOCALXREFSFILE)
-
-autodoc_html: subdir_autodoc_html local_autodoc_html
-.PHONY: local_autodoc_html
-local_autodoc_html: $(HTMLFILES)
-
 
 # generate an archive for distribution
 distrib: dist
@@ -74,24 +66,30 @@ local_tags: $(TAGFILES)
        etags -C $^
 
 # installation
-install:       subdir_install local_install
-local_install: $(INCLUDEDIR) $(LIBDIR)
+install:       $(INCLUDEDIR) install_headers $(LIBDIR) install_libs
+
+install_headers:       subdir_install_headers local_install_headers
+local_install_headers:
 ifneq ($(strip $(INSTALL_HEADERS)),)
-       $(INSTALL) -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
+       $(INSTALL)  -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
 endif
+
+install_libs:          subdir_install_libs local_install_libs
+local_install_libs:
 ifneq ($(strip $(INSTALL_LIBS)),)
-       $(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
+       $(INSTALL)  -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
 endif
 
-$(LIBDIR):     $(LIBDIR)
+
+$(LIBDIR):
        mkdir -p $@
 
-$(INCLUDEDIR): $(INCLUDEDIR)
+$(INCLUDEDIR):
        mkdir -p $@
 
 # generated the directory where all the generated documentation is
 $(AUTODOCDIR):
-       mkdir $@
+       mkdir -p $@
 
 # print some help
 .PHONY:        help