blob: c723ceba650c2cc314fdd852ac9f3380f62dabeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
From 3949c5cb4c6f59f3aec41a99db1c074b16b7d2ba Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Sun, 25 May 2014 16:26:42 +0200
Subject: [PATCH gnumach 1/3] Include the notify protocol in gnumach.msgids
* Makefrag.am (gnumach.msgids): Add notify.msgids as prerequisite.
* Makerules.mig.am: Add rule to generate the list of message ids when
neither the client nor the server stubs are required.
---
Makefrag.am | 3 ++-
Makerules.mig.am | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefrag.am b/Makefrag.am
index 023a4d1..1f58c6d 100644
--- a/Makefrag.am
+++ b/Makefrag.am
@@ -547,7 +547,8 @@ nodist_libkernel_a_SOURCES += \
# rpctrace can make use of that.
MOSTLYCLEANFILES += \
gnumach.msgids
-gnumach.msgids: $(filter %.msgids,$(nodist_libkernel_a_SOURCES))
+gnumach.msgids: $(filter %.msgids,$(nodist_libkernel_a_SOURCES)) \
+ include/mach/notify.msgids
$(AM_V_at) cat $^ > $@.new
$(AM_V_GEN) mv $@.new $@
# `exec_' prefix, so that we don't try to build that file during when running
diff --git a/Makerules.mig.am b/Makerules.mig.am
index 3060984..1612e1c 100644
--- a/Makerules.mig.am
+++ b/Makerules.mig.am
@@ -88,6 +88,14 @@ lib_dep_tr_for_defs_a_CPPFLAGS = $(AM_CPPFLAGS) \
-list $*.user.msgids \
< $<
+# Stand-alone rule to generate the list of message ids when neither
+# the client nor the server stubs are required.
+%.msgids: $(top_srcdir)/%.defs
+ $(MIGCOM_V) $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -E $< \
+ | $(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMSFLAGS) \
+ -sheader /dev/null -server /dev/null \
+ -list "$@"
+
# This is how it should be done, but this is not integrated into GNU Automake
# and is missing automatic inter-file dependency management because of that.
--
2.1.4
|