~ubuntu-branches/debian/sid/hal/sid

« back to all changes in this revision

Viewing changes to tools/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-10-23 12:33:58 UTC
  • Revision ID: james.westby@ubuntu.com-20071023123358-xaf8mjc5n84d5gtz
Tags: upstream-0.5.10
ImportĀ upstreamĀ versionĀ 0.5.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
## Process this file with automake to produce Makefile.in
2
2
 
3
 
 
4
3
SUBDIRS =
5
4
 
6
 
if HAVE_PYTHON
7
 
SUBDIRS += device-manager
8
 
endif
9
 
 
10
5
if HALD_COMPILE_LINUX
11
6
SUBDIRS += linux
12
7
endif
14
9
SUBDIRS += freebsd
15
10
endif
16
11
 
17
 
DIST_SUBDIRS = device-manager freebsd linux
 
12
DIST_SUBDIRS = freebsd linux
18
13
 
19
 
INCLUDES = \
 
14
AM_CPPFLAGS = \
20
15
        -DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
21
16
        -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
22
17
        -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
38
33
        hal-lock                  \
39
34
        hal-disable-polling
40
35
 
 
36
BUILT_SOURCES = 
 
37
DISTCLEANFILES = 
 
38
 
 
39
if HAVE_POLKIT
 
40
bin_PROGRAMS += hal-is-caller-privileged
 
41
endif
 
42
 
 
43
if BUILD_KEYMAPS
 
44
bin_PROGRAMS += hal-setup-keymap
 
45
endif
 
46
 
41
47
lshal_SOURCES = lshal.c
42
48
lshal_LDADD = @GLIB_LIBS@ $(top_builddir)/libhal/libhal.la
43
49
 
65
71
hal_disable_polling_SOURCES = hal-disable-polling.c
66
72
hal_disable_polling_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ $(top_builddir)/libhal/libhal.la
67
73
 
 
74
if HAVE_POLKIT
 
75
hal_is_caller_privileged_SOURCES = hal-is-caller-privileged.c
 
76
hal_is_caller_privileged_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ $(top_builddir)/libhal/libhal.la
 
77
endif
 
78
 
 
79
if BUILD_KEYMAPS
 
80
 
 
81
if HAVE_GPERF
 
82
hal-setup-keymap-keys.txt: /usr/include/linux/input.h
 
83
        awk '/^#define.*KEY_/ { if ($$2 != "KEY_MAX") { print substr($$2, 5) } }' < $< > $@
 
84
 
 
85
hal-setup-keymap-hash-name.gperf: hal-setup-keymap-keys.txt
 
86
        awk 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", KEY_" $$1 }' < $< > $@
 
87
 
 
88
hal-setup-keymap-hash-name.h: hal-setup-keymap-hash-name.gperf
 
89
        gperf -t --ignore-case -N lookup_key -H hash_input_names -p -C < $< > $@
 
90
endif #HAVE_GPERF
 
91
 
 
92
hal_setup_keymap_SOURCES = hal-setup-keymap.c hal-setup-keymap-hash-name.h
 
93
hal_setup_keymap_LDADD = $(top_builddir)/libhal/libhal.la
 
94
 
 
95
endif #BUILD_KEYMAPS
 
96
 
68
97
libexec_PROGRAMS =                          \
69
98
        hal-storage-mount                   \
70
99
        hal-storage-unmount                 \
88
117
libexec_PROGRAMS += hal-acl-tool
89
118
 
90
119
hal_acl_tool_SOURCES = hal-acl-tool.c
91
 
hal_acl_tool_LDADD = @GLIB_LIBS@ $(top_builddir)/libhal/libhal.la
 
120
hal_acl_tool_LDADD = @GLIB_LIBS@ @POLKIT_LIBS@ $(top_builddir)/libhal/libhal.la
92
121
endif
93
122
 
94
123
hal_system_power_pm_is_supported_SOURCES = hal-system-power-pm-is-supported.c
137
166
        hal-system-lcd-set-brightness           \
138
167
        hal-system-power-set-power-save         \
139
168
        hal-system-killswitch-get-power         \
140
 
        hal-system-killswitch-set-power
 
169
        hal-system-killswitch-set-power         \
 
170
        hal-functions
141
171
 
142
172
EXTRA_DIST=$(man_MANS) $(MAN_IN_FILES) gen-libgphoto-hal-fdi $(script_SCRIPTS)
143
173
 
149
179
umount_hal_LDADD = @DBUS_LIBS@ $(top_builddir)/libhal/libhal.la $(top_builddir)/libhal-storage/libhal-storage.la
150
180
endif
151
181
 
 
182
if HAVE_GPERF
 
183
DISTCLEANFILES +=                               \
 
184
        hal-setup-keymap-hash-name.h            \
 
185
        hal-setup-keymap-hash-name.gperf        \
 
186
        hal-setup-keymap-keys.txt
 
187
 
 
188
BUILT_SOURCES +=                                \
 
189
        hal-setup-keymap-hash-name.h            \
 
190
        hal-setup-keymap-hash-name.gperf        \
 
191
        hal-setup-keymap-keys.txt
 
192
endif
 
193
 
152
194
check:
153
195
        for f in $(script_SCRIPTS); do \
154
196
            echo -n "Validate bash syntax in $$f : "; \