-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
108 lines (80 loc) · 3.41 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
106
107
108
ACLOCAL_AMFLAGS = -Im4
AM_CPPFLAGS = -I$(top_srcdir)/include
include_HEADERS = include/sns.h
pkginclude_HEADERS = \
include/sns/msg.h \
include/sns/util.h \
include/sns/daemon.h \
include/sns/event.h \
include/sns/path.h \
include/sns/sdh_tactile.h
init_ddir = $(sysconfdir)/init.d
init_d_SCRIPTS = scripts/sns
lib_LTLIBRARIES = libsns.la
libsns_la_SOURCES = src/msg.c src/daemon.c src/util.c src/msg/path.c src/event.c
libsns_la_LIBADD = $(AMINO_LIBS) $(ACH_LIBS)
## PLUGINS
lib_LTLIBRARIES += libsns_msg_joystick.la
libsns_msg_joystick_la_SOURCES = src/msg_plugin.c
libsns_msg_joystick_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_joystick
libsns_msg_joystick_la_LIBADD = libsns.la
lib_LTLIBRARIES += libsns_msg_motor_ref.la
libsns_msg_motor_ref_la_SOURCES = src/msg_plugin.c
libsns_msg_motor_ref_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_motor_ref
libsns_msg_motor_ref_la_LIBADD = libsns.la
lib_LTLIBRARIES += libsns_msg_tag_motor_ref.la
libsns_msg_tag_motor_ref_la_SOURCES = src/msg_plugin.c
libsns_msg_tag_motor_ref_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_tag_motor_ref
libsns_msg_tag_motor_ref_la_LIBADD = libsns.la
lib_LTLIBRARIES += libsns_msg_motor_state.la
libsns_msg_motor_state_la_SOURCES = src/msg_plugin.c
libsns_msg_motor_state_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_motor_state
libsns_msg_motor_state_la_LIBADD = libsns.la
lib_LTLIBRARIES += libsns_msg_vector.la
libsns_msg_vector_la_SOURCES = src/msg_plugin.c
libsns_msg_vector_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_vector
libsns_msg_vector_la_LIBADD = libsns.la
lib_LTLIBRARIES += libsns_msg_tf.la
libsns_msg_tf_la_SOURCES = src/msg_plugin.c
libsns_msg_tf_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_tf
libsns_msg_tf_la_LIBADD = libsns.la
lib_LTLIBRARIES += libsns_msg_wt_tf.la
libsns_msg_wt_tf_la_SOURCES = src/msg_plugin.c
libsns_msg_wt_tf_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_wt_tf
libsns_msg_wt_tf_la_LIBADD = libsns.la
lib_LTLIBRARIES += libsns_msg_tf_dx.la
libsns_msg_tf_dx_la_SOURCES = src/msg_plugin.c
libsns_msg_tf_dx_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_tf_dx
libsns_msg_tf_dx_la_LIBADD = libsns.la
lib_LTLIBRARIES += libsns_msg_sdh_tactile.la
libsns_msg_sdh_tactile_la_SOURCES = src/msg_plugin.c
libsns_msg_sdh_tactile_la_CFLAGS = $(CFLAGS) -DSNS_MSG_PLUGIN_TYPE=sns_msg_sdh_tactile
libsns_msg_sdh_tactile_la_LIBADD = libsns.la
bin_PROGRAMS = snsdump snsplot sns-trylock
snsdump_SOURCES = src/snsdump.c
snsdump_LDADD = libsns.la $(AMINO_LIBS) $(ACH_LIBS)
snsplot_SOURCES = src/snsplot.c
snsplot_LDADD = libsns.la $(AMINO_LIBS) $(ACH_LIBS)
sns_trylock_SOURCES = src/sns-trylock.c
bin_PROGRAMS += snslogd
snslogd_SOURCES = src/snslogd.c
snslogd_LDADD = libsns.la $(AMINO_LIBS) $(ACH_LIBS)
bin_PROGRAMS += snslog
snslog_SOURCES = src/snslog.c
snslog_LDADD = libsns.la $(AMINO_LIBS) $(ACH_LIBS)
bin_PROGRAMS += snsref
snsref_SOURCES = src/snsref.c
snsref_LDADD = libsns.la $(AMINO_LIBS) $(ACH_LIBS)
bin_PROGRAMS += snsrec
snsrec_SOURCES = src/snsrec.c
snsrec_LDADD = libsns.la $(AMINO_LIBS) $(ACH_LIBS)
bin_PROGRAMS += snsreced
snsreced_SOURCES = src/snsreced.c
snsreced_LDADD = libsns.la $(AMINO_LIBS) $(ACH_LIBS)
bin_PROGRAMS += snsmplex
snsmplex_SOURCES = src/bin/mplex.c
snsmplex_LDADD = libsns.la $(AMINO_LIBS) $(ACH_LIBS)
install-exec-hook:
ln -sf $(DESTDIR)$(init_ddir)/sns$(EXEEXT) \
$(DESTDIR)$(bindir)/sns$(EXEEXT)
include doxygen.am