projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added pn_Call_max
[libfirm]
/
MakeTargets
diff --git
a/MakeTargets
b/MakeTargets
index
a3ffd53
..
7550378
100644
(file)
--- a/
MakeTargets
+++ b/
MakeTargets
@@
-1,8
+1,13
@@
-# Hey Emacs, this is a -*- makefile -*-
#
#
-# libFIRM Project
-#
-# $Id$
+# Project: libFIRM
+# File name: MakeTargets
+# Purpose:
+# Author: nicht Till Riedel, das waren andere
+# Modified by:
+# Created:
+# CVS-ID: $Id$
+# Copyright: (c) 2002-2003 Universität Karlsruhe
+# Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
#
.PHONY: subdir_all
#
.PHONY: subdir_all
@@
-11,8
+16,12
@@
all : subdir_all
# partial linking of a subdir's $(OFILES) into one file
subdir.o: $(OFILES)
# partial linking of a subdir's $(OFILES) into one file
subdir.o: $(OFILES)
+ifeq ($(strip $(OFILES)),)
+ >$@
+else
rm -f $@
rm -f $@
- $(LD) $(LDFLAGS) -r -o $@ $^
+ $(LD) $(LDFLAGS) -r -o $@ $^
+endif
clean: subdir_clean local_clean
.PHONY: local_clean
clean: subdir_clean local_clean
.PHONY: local_clean
@@
-20,7
+29,7
@@
local_clean:
$(RM) $(OFILES) subdir.o core
realclean: subdir_realclean local_clean
$(RM) $(OFILES) subdir.o core
realclean: subdir_realclean local_clean
- $(RM) $(GENFILES) .depend TAGS
+ $(RM) $(GENFILES) .depend TAGS
$(TARDIRNAME)
depend: subdir_depend local_depend
.PHONY: local_depend
depend: subdir_depend local_depend
.PHONY: local_depend
@@
-31,15
+40,22
@@
else
$(CC) -M $(DEFS) $(CPPFLAGS) $(filter %.c,$^) >.depend || { $(RM) .depend; false; }
endif
$(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
+ $(MAKE) -C testprograms dist
+dist: subdir_dist local_dist $(TARDIRNAME)
+# @echo create archive with $(DISTFILES)
+# @echo tar -C $(top_srcdir) -uf libfirm.tar $(ARCHIVEDISTFILES)
+ $(TAR) $(TARFLAGS) $(ARCHIVEDISTFILES)
+.PHONY: local_dist
+local_dist: $(DISTFILES)
+$(TARDIRNAME):
+ $(LN_S) $(top_srcdir) $@
+
+# dont know about this
# Recurse into $(subdirs) for $(targets)
$(addprefix subdir_,$(targets)): $(subdirs)
+$(recurse)
# Recurse into $(subdirs) for $(targets)
$(addprefix subdir_,$(targets)): $(subdirs)
+$(recurse)
@@
-55,23
+71,37
@@
local_tags: $(TAGFILES)
etags -C $^
# installation
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)),)
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
endif
+
+install_libs: subdir_install_libs local_install_libs
+local_install_libs:
ifneq ($(strip $(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
endif
-$(LIBDIR): $(LIBDIR)
+
+$(LIBDIR):
mkdir -p $@
mkdir -p $@
-$(INCLUDEDIR):
$(INCLUDEDIR)
+$(INCLUDEDIR):
mkdir -p $@
mkdir -p $@
+# generated the directory where all the generated documentation is
$(AUTODOCDIR):
$(AUTODOCDIR):
- mkdir $@
+ mkdir -p $@
+
+# print some help
+.PHONY: help
+help:
+ @echo "possible targets are:"
+ @echo "[$(targets)]"
+ @echo "but not all of them should be used or make sense"
# include dependencies
-include .depend
# include dependencies
-include .depend