1 # Hey Emacs, this is a -*- makefile -*-
12 # partial linking of a subdir's $(OFILES) into one file
15 $(LD) $(LDFLAGS) -r -o $@ $^
17 clean: subdir_clean local_clean
20 $(RM) $(OFILES) subdir.o core
22 realclean: subdir_realclean local_clean
23 $(RM) $(GENFILES) .depend TAGS
25 depend: subdir_depend local_depend
27 local_depend: $(CFILES) $(filter %.h,$(SOURCES) $(GENFILES))
28 ifeq ($(strip $(CFILES)),)
31 $(CC) -M $(DEFS) $(CPPFLAGS) $(filter %.c,$^) >.depend || { $(RM) .depend; false; }
34 autodoc_xref: subdir_autodoc_xref local_autodoc_xref
35 .PHONY: local_autodoc_xref
36 local_autodoc_xref: $(LOCALXREFSFILE)
38 autodoc_html: subdir_autodoc_html local_autodoc_html
39 .PHONY: local_autodoc_html
40 local_autodoc_html: $(HTMLFILES)
43 # Recurse into $(subdirs) for $(targets)
44 $(addprefix subdir_,$(targets)): $(subdirs)
47 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
49 CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status >&2
52 tags: subdir_tags local_tags
54 local_tags: $(TAGFILES)
58 install: subdir_install local_install
59 local_install: $(INCLUDEDIR) $(LIBDIR)
60 ifneq ($(strip $(INSTALL_HEADERS)),)
61 $(INSTALL) -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
63 ifneq ($(strip $(INSTALL_LIBS)),)
64 $(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
70 $(INCLUDEDIR): $(INCLUDEDIR)
76 # include dependencies