forked from Rosga/libuiohook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
105 lines (84 loc) · 3.56 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# libUIOHook: Cross-platform userland keyboard and mouse hooking.
# Copyright (C) 2006-2020 Alexander Barker. All Rights Received.
# https://github.com/kwhat/libuiohook/
#
# libUIOHook 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 3 of the License, or
# (at your option) any later version.
#
# libUIOHook 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 Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
ACLOCAL_AMFLAGS = -I m4
HOOK_SRC = src/logger.c
TEST_SRC = test/input_helper_test.c test/system_properties_test.c test/uiohook_test.c
MAN3_SRC = man/hook_run.man \
man/hook_stop.man \
man/hook_get_auto_repeat_delay.man \
man/hook_get_multi_click_time.man \
man/hook_get_pointer_acceleration_threshold.man \
man/hook_set_dispatch_proc.man \
man/hook_get_auto_repeat_rate.man \
man/hook_get_pointer_acceleration_multiplier.man \
man/hook_get_pointer_sensitivity.man \
man/hook_set_logger_proc.man
if BUILD_DARWIN
HOOK_SRC += src/darwin/input_helper.c \
src/darwin/input_hook.c \
src/darwin/post_event.c \
src/darwin/system_properties.c
endif
if BUILD_X11
HOOK_SRC += src/x11/input_helper.c \
src/x11/input_hook.c \
src/x11/post_event.c \
src/x11/system_properties.c
endif
if BUILD_WINDOWS
HOOK_SRC += src/windows/input_helper.c \
src/windows/input_hook.c \
src/windows/post_event.c \
src/windows/system_properties.c
endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(top_builddir)/pc/uiohook.pc
include_HEADERS = include/uiohook.h
bin_PROGRAMS =
lib_LTLIBRARIES = libuiohook.la
libuiohook_la_CFLAGS = $(AM_CFLAGS) -Wall -Wextra -pedantic -Wno-unused-parameter -I$(top_srcdir)/include -I$(top_srcdir)/src/$(backend) -I$(top_srcdir)/src
libuiohook_la_LDFLAGS = $(LTLDFLAGS) $(LDFLAGS)
libuiohook_la_SOURCES = $(HOOK_SRC)
if BUILD_DEMO
bin_PROGRAMS += demohook demohookasync demopost demoprops
demohook_SOURCES = demo/demo_hook.c
demohook_LDADD = $(top_builddir)/libuiohook.la
demohook_CFLAGS = $(AM_CFLAGS) -Wall -Wextra -pedantic $(DEMO_CFLAGS) -I$(top_srcdir)/include
demohook_LDFLAGS = $(LTLDFLAGS) $(DEMO_LIBS)
demohookasync_SOURCES = demo/demo_hook_async.c
demohookasync_LDADD = $(top_builddir)/libuiohook.la
demohookasync_CFLAGS = $(AM_CFLAGS) -Wall -Wextra -pedantic $(DEMO_CFLAGS) -I$(top_srcdir)/include
demohookasync_LDFLAGS = $(LTLDFLAGS) $(DEMO_LIBS)
demopost_SOURCES = demo/demo_post.c
demopost_LDADD = $(top_builddir)/libuiohook.la
demopost_CFLAGS = $(AM_CFLAGS) -Wall -Wextra -pedantic $(DEMO_CFLAGS) -I$(top_srcdir)/include
demopost_LDFLAGS = $(LTLDFLAGS) $(DEMO_LIBS)
demoprops_SOURCES = demo/demo_properties.c
demoprops_LDADD = $(top_builddir)/libuiohook.la
demoprops_CFLAGS = $(AM_CFLAGS) -Wall -Wextra -pedantic $(DEMO_CFLAGS) -I$(top_srcdir)/include
demoprops_LDFLAGS = $(LTLDFLAGS) $(DEMO_LIBS)
endif
if BUILD_TEST
bin_PROGRAMS += testhook
testhook_SOURCES = $(TEST_SRC)
testhook_LDADD = $(top_builddir)/libuiohook.la
testhook_CFLAGS = $(AM_CFLAGS) -Wall -Wextra -pedantic $(TEST_CFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)/test -I$(top_srcdir)/src/$(backend) -I$(top_srcdir)/src
testhook_LDFLAGS = $(LTLDFLAGS) $(TEST_LIBS)
endif
man3_MANS = $(MAN3_SRC)
EXTRA_DIST = COPYING.md COPYING.LESSER.md README.md