1
################################################################################
2
### Copyright 2008 VMware, Inc. All rights reserved.
4
### This program is free software; you can redistribute it and/or modify
5
### it under the terms of version 2 of the GNU General Public License as
6
### published by the Free Software Foundation.
8
### This program is distributed in the hope that it will be useful,
9
### but WITHOUT ANY WARRANTY; without even the implied warranty of
10
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
### GNU General Public License for more details.
13
### You should have received a copy of the GNU General Public License
14
### along with this program; if not, write to the Free Software
15
### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
################################################################################
18
noinst_LIBRARIES = libGuestRpc.a
20
libGuestRpc_a_SOURCES =
21
libGuestRpc_a_SOURCES += ghiGetBinaryHandlers_xdr.c
22
libGuestRpc_a_SOURCES += ghiProtocolHandler_xdr.c
23
libGuestRpc_a_SOURCES += nicinfo_xdr.c
25
nodist_libGuestRpc_a_SOURCES =
26
nodist_libGuestRpc_a_SOURCES += ghiGetBinaryHandlers.h
27
nodist_libGuestRpc_a_SOURCES += ghiGetBinaryHandlers_xdr.c
28
nodist_libGuestRpc_a_SOURCES += ghiProtocolHandler.h
29
nodist_libGuestRpc_a_SOURCES += ghiProtocolHandler_xdr.c
30
nodist_libGuestRpc_a_SOURCES += nicinfo.h
31
nodist_libGuestRpc_a_SOURCES += nicinfo_xdr.c
33
# XXX: Autoreconf complains about this and recommends using AM_CFLAGS instead.
34
# Neither that nor libGuestRpc_a_CFLAGS work, though. What gives?
38
CLEANFILES += ghiGetBinaryHandlers.h
39
CLEANFILES += ghiGetBinaryHandlers_xdr.c
40
CLEANFILES += ghiProtocolHandler.h
41
CLEANFILES += ghiProtocolHandler_xdr.c
42
CLEANFILES += nicinfo.h
43
CLEANFILES += nicinfo_xdr.c
46
EXTRA_DIST += ghiGetBinaryHandlers.x
47
EXTRA_DIST += ghiProtocolHandler.x
48
EXTRA_DIST += nicinfo.x
50
ghiGetBinaryHandlers.h: ghiGetBinaryHandlers.x
51
$(RPCGEN) -h -o $@ ghiGetBinaryHandlers.x
52
$(SED) 's,rpc/rpc\.h,vmxrpc.h,' $@ > $@.tmp
54
$(MKDIR_P) $(top_builddir)/include/guestrpc
55
cp $@ $(top_builddir)/include/guestrpc
57
ghiGetBinaryHandlers_xdr.c: ghiGetBinaryHandlers.x ghiGetBinaryHandlers.h
58
$(RPCGEN) -c -o $@ ghiGetBinaryHandlers.x
60
ghiProtocolHandler.h: ghiProtocolHandler.x
61
$(RPCGEN) -h -o $@ ghiProtocolHandler.x
62
$(SED) 's,rpc/rpc\.h,vmxrpc.h,' $@ > $@.tmp
64
$(MKDIR_P) $(top_builddir)/include/guestrpc
65
cp $@ $(top_builddir)/include/guestrpc
67
ghiProtocolHandler_xdr.c: ghiProtocolHandler.x ghiProtocolHandler.h
68
$(RPCGEN) -c -o $@ ghiProtocolHandler.x
71
$(RPCGEN) -h -o $@ nicinfo.x
72
$(SED) 's,rpc/rpc\.h,vmxrpc.h,' $@ > $@.tmp
74
$(MKDIR_P) $(top_builddir)/include/guestrpc
75
cp $@ $(top_builddir)/include/guestrpc
77
nicinfo_xdr.c: nicinfo.x nicinfo.h
78
$(RPCGEN) -c -o $@ nicinfo.x