-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile.am
83 lines (61 loc) · 2.55 KB
/
Makefile.am
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
#
# Makefile.am:
#
#
# $Id:$
#
# $Log:$
#
#
#
#
# Copyright (c) 2013 Citrix Systems, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# NB you must manually add the object implementation to SRCS
# as automake can't cope with runtime source file lists
DBUS_CLIENT_IDLS=db surfman xenmgr xenmgr_host xenmgr_vm xcpmd
DBUS_SERVER_IDLS=input_daemon
SRCS=server.c bus.c secure_scripts.c user.c secure.c input.c domains.c \
switch.c util.c focus.c touchpad.c keymap.c usb-tablet.c rpcgen/input_daemon_server_obj.c \
pm.c xen_vkbd.c xen_event.c gesture.c lid.c encapsulate.c socket.c debug.c
LIBS=-lz -lssl -levent @UDEV_LIBS@ @DBUS_LIBS@ @DBUS_GLIB_LIBS@ @LIBXCDBUS_LIBS@ @LIBXC_LIB@ @LIBXCXENSTORE_LIBS@ @LIBDMBUS_LIB@ @LIBARGO_LIB@ @LIBXENBACKEND_LIB@
CPROTO=cproto
INCLUDES = @UDEV_CFLAGS@ @DBUS_CFLAGS@ @DBUS_GLIB_CFLAGS@ @LIBXCDBUS_CFLAGS@ @LIBXC_INC@ @LIBXCXENSTORE_CFLAGS@ @LIBDMBUS_INC@ @LIBXENBACKEND_INC@
fish:
echo ${input_server_SOURCES}
include_HEADERS=xc_input_socket_protocol.h
bin_PROGRAMS = input_server
BUILT_SOURCES = ${DBUS_CLIENT_IDLS:%=rpcgen/%_client.h} \
${DBUS_SERVER_IDLS:%=rpcgen/%_server_marshall.h} \
${DBUS_SERVER_IDLS:%=rpcgen/%_server_obj.c} \
${DBUS_SERVER_IDLS:%=rpcgen/%_server_obj.h}
input_server_SOURCES = ${SRCS} main.c
#input_client_SOURCES = ${SRCS} client.c
#intel_putpic_SOURCES = ${SRCS} putpic.c
#intel_putpic_LDADD = ${LIBS}
AM_CFLAGS=-g -W -Wall -Werror -Wno-unused -D_GNU_SOURCE
rpcgen/%_client.h: ${IDLDIR}/%.xml
mkdir -p rpcgen
${XC_RPCGEN} --templates-dir=${RPCGEN_TEMPLATES} -c -o rpcgen/ $<
rpcgen/%_server_marshall.h rpcgen/%_server_obj.h rpcgen/%_server_obj.c : ${IDLDIR}/%.xml
mkdir -p rpcgen
${XC_RPCGEN} --templates-dir=${RPCGEN_TEMPLATES} -s -o rpcgen/ $<
protos:
echo > prototypes.h
${CPROTO} -E "${CPP} ${CPPFLAGS}" -v `echo ${INCLUDES} | sed -e 's/-pthread//g'` ${SRCS} > prototypes.tmp
mv -f prototypes.tmp prototypes.h