# Copyright (C) 2006 Free Software Foundation, Inc. # # 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, 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, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Written by Thomas Schwinge. .defs: @mig-with-cpp .cli: @mig-with-cpp .srv: @mig-with-cpp @mig-with-cpp: %(trad_capable_cpp) %(cpp_options) %{E|M|MM:%(cpp_debug_options)} \ %{E:%{Xmig*:%nignorning all `-Xmig-*' flags because of `-E'}} \ %{M*:%{E:%{o*:-MT %*; \ :%ndependency tracking output file might not be accurate}; \ :%{Xmig-user*:-MT %*} \ %{Xmig-server=*:-MT %*} \ %{Xmig-header=*:-MT %*} \ %{Xmig-sheader=*:-MT %*} \ %{Xmig-iheaderer=*:-MT %*}}} \ %{save-temps: | tee %b.i} \ %{E:; \ c:| /home/thomas/tmp/source/mig/HEAD-install/build/install/libexec/migcom \ %{Xmig-*:%*}; \ :%ehave to use `-E' or `-c' when processing `MIG' files.} # As a special hack, if -i is specified first we don't pass -user to migcom. # We do use the -user argument for the dependencies. # In this case, the -user argument can have whitespace. # # -MD ) sawMD=1; cppflags="$cppflags $1"; shift;; # -q suppress warning statements # -Q print warning statements [default] # -v verbose # -V compile silently [default] # -t What's that? # -T What's that? # -r Pass to migcom? # -R Pass to migcom? # -s generate symbol table in Server.c code # -S suppress symbol table in Server.c code [default] # -n suppress default output file names, create only given files # -prefix | -subrprefix ) migflags="$migflags $1 $2"; shift; shift;; # -i generate separate files for each routine / # -i ) sawI=1; migflags="$migflags $1 $2"; shift; shift;; # -user FILE generate user stubs in FILE / -user ) user="$2"; if [ ! "${sawI-}" ]; then migflags="$migflags $1 $2"; fi; shift; shift;; # -server FILE generate server stubs in FILE / -server ) server="$2"; migflags="$migflags $1 $2"; shift; shift;; # -header FILE generate stub header file in FILE / -header ) header="$2"; migflags="$migflags $1 $2"; shift; shift;; # -sheader ) sheader="$2"; migflags="$migflags $1 $2"; shift; shift;; # -iheader ) iheader="$2"; migflags="$migflags $1 $2"; shift; shift;; # -list FILE generate list of RPC names and message IDs in FILE / -list ) list="$2"; migflags="$migflags $1 $2"; shift; shift;;