rule.
Give normal rules for the mach RPC source included by profil.c instead
of trying to use before-compile grot.
(before-compile): Add the mach RPC source files that profil.c needs if
we are in the gmon directory.
# be compatible with some existing binaries for that system.
inhibit-glue = yes
-
ifeq (,$(filter mach hurd,$(subdir)))
# Subdirectories other than hurd/ might use the generated Hurd headers.
# So make sure we get a chance to run in hurd/ to make them before all else.
$(MAKE) -C $(..)hurd generated no_deps=t
endif
+# Hurd profil.c includes this file, so give a rule to make it.
+ifeq ($(subdir),gmon)
+$(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c:
+ $(MAKE) -C $(..)mach generated no_deps=t
+endif
+
\f
# Generate errnos.h from the section of the manual that lists all the errno
# codes.