1 # Hey Emacs, this is a -*- makefile -*-
12 # partial linking of a subdir's $(OFILES) into one file
14 ifeq ($(strip $(OFILES)),)
18 $(LD) $(LDFLAGS) -r -o $@ $^
21 clean: subdir_clean local_clean
24 $(RM) $(OFILES) subdir.o core
26 realclean: subdir_realclean local_clean
27 $(RM) $(GENFILES) .depend TAGS
29 depend: subdir_depend local_depend
31 local_depend: $(CFILES) $(filter %.h,$(SOURCES) $(GENFILES))
32 ifeq ($(strip $(CFILES)),)
35 $(CC) -M $(DEFS) $(CPPFLAGS) $(filter %.c,$^) >.depend || { $(RM) .depend; false; }
38 autodoc_xref: subdir_autodoc_xref local_autodoc_xref
39 .PHONY: local_autodoc_xref
40 local_autodoc_xref: $(LOCALXREFSFILE)
42 autodoc_html: subdir_autodoc_html local_autodoc_html
43 .PHONY: local_autodoc_html
44 local_autodoc_html: $(HTMLFILES)
47 # generate an archive for distribution
48 dist: subdir_dist local_dist
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 # dont know about this
57 # Recurse into $(subdirs) for $(targets)
58 $(addprefix subdir_,$(targets)): $(subdirs)
61 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
63 CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status >&2
66 tags: subdir_tags local_tags
68 local_tags: $(TAGFILES)
72 install: subdir_install local_install
73 local_install: $(INCLUDEDIR) $(LIBDIR)
74 ifneq ($(strip $(INSTALL_HEADERS)),)
75 $(INSTALL) -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
77 ifneq ($(strip $(INSTALL_LIBS)),)
78 $(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
84 $(INCLUDEDIR): $(INCLUDEDIR)
90 # include dependencies