diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-25 16:26:42 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-05-31 18:01:01 +0200 |
commit | 255c47e669819f153c722c98a230f6fe4e6ece08 (patch) | |
tree | aae800c8f56e5587833d27e26d277ee82fa562ff | |
parent | 99a43d36c83d318f24edd8c6d80f060686a6c398 (diff) |
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.
* ipc/notify.defs: New file.
-rw-r--r-- | Makefrag.am | 3 | ||||
-rw-r--r-- | Makerules.mig.am | 10 | ||||
-rw-r--r-- | ipc/notify.defs | 22 |
3 files changed, 34 insertions, 1 deletions
diff --git a/Makefrag.am b/Makefrag.am index 023a4d1..0e4a917 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)) \ + ipc/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..085b247 100644 --- a/Makerules.mig.am +++ b/Makerules.mig.am @@ -88,6 +88,16 @@ lib_dep_tr_for_defs_a_CPPFLAGS = $(AM_CPPFLAGS) \ -list $*.user.msgids \ < $< +vpath %.defs $(top_srcdir) + +# Stand-alone rule to generate the list of message ids when neither +# the client nor the server stubs are required. +%.msgids: %.defs + $(MIGCOM_V) $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -E $< \ + | $(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMSFLAGS) \ + -sheader /dev/null -server /dev/null \ + -list "$*.msgids" + # 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. diff --git a/ipc/notify.defs b/ipc/notify.defs new file mode 100644 index 0000000..d34eb9c --- /dev/null +++ b/ipc/notify.defs @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2015 Free Software Foundation. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/* We use custom functions to send notifications. This functions can + be found in `ipc_notify.c'. We use this file merely to produce the + list of message ids. */ + +#include <mach/notify.defs> |