3 # File name: MakeTargets
5 # Author: nicht Till Riedel, das waren andere
9 # Copyright: (c) 2002-2003 Universität Karlsruhe
10 # Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
17 # partial linking of a subdir's $(OFILES) into one file
19 ifeq ($(strip $(OFILES)),)
23 $(LD) $(LDFLAGS) -r -o $@ $^
26 clean: subdir_clean local_clean
29 $(RM) $(OFILES) subdir.o core
31 realclean: subdir_realclean local_clean
32 $(RM) $(GENFILES) .depend TAGS $(TARDIRNAME)
34 depend: subdir_depend local_depend
36 local_depend: $(CFILES) $(filter %.h,$(SOURCES) $(GENFILES))
37 ifeq ($(strip $(CFILES)),)
40 $(CC) -M $(DEFS) $(CPPFLAGS) $(filter %.c,$^) >.depend || { $(RM) .depend; false; }
44 # generate an archive for distribution
46 $(MAKE) -C testprograms dist
48 dist: subdir_dist local_dist $(TARDIRNAME)
49 # @echo create archive with $(DISTFILES)
50 # @echo tar -C $(top_srcdir) -uf libfirm.tar $(ARCHIVEDISTFILES)
51 $(TAR) $(TARFLAGS) $(ARCHIVEDISTFILES)
53 local_dist: $(DISTFILES)
56 $(LN_S) $(top_srcdir) $@
58 # dont know about this
59 # Recurse into $(subdirs) for $(targets)
60 $(addprefix subdir_,$(targets)): $(subdirs)
63 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
65 CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status >&2
68 tags: subdir_tags local_tags
70 local_tags: $(TAGFILES)
74 install: $(INCLUDEDIR) install_headers $(LIBDIR) install_libs
76 install_headers: subdir_install_headers local_install_headers
77 local_install_headers:
78 ifneq ($(strip $(INSTALL_HEADERS)),)
79 $(INSTALL) -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
82 install_libs: subdir_install_libs local_install_libs
84 ifneq ($(strip $(INSTALL_LIBS)),)
85 $(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
95 # generated the directory where all the generated documentation is
102 @echo "possible targets are:"
104 @echo "but not all of them should be used or make sense"
106 # include dependencies