blob: 0fdc0df00328eebbf6cbfc1125be5ca1c0c8aa52 (
plain)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
## Process this file with automake to produce Makefile.in
SUBDIRS =
NULL =
INCLUDES = \
-I$(top_builddir)/src -I$(top_srcdir)/src \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
-DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
-DPACKAGE_LIB_DIR=\""$(libdir)"\" \
-DSRCDIR=\""$(srcdir)"\" \
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
-DSTC_COMPILATION \
$(GLIB_CFLAGS) \
$(NULL)
stcmarshal.h: stcmarshal.list
glib-genmarshal $< --prefix=_stc_marshal --header > $@
stcmarshal.c: stcmarshal.list
echo "#include \"stcmarshal.h\"" > $@ && glib-genmarshal $< --prefix=_stc_marshal --body >> $@
stcenumtypes.h: stcenums.h stcenumtypes.h.template
( top_builddir=`cd $(top_builddir) && pwd`; \
cd $(srcdir) && glib-mkenums --template stcenumtypes.h.template stcenums.h ) > \
stcenumtypes.h.tmp && mv stcenumtypes.h.tmp stcenumtypes.h
stcenumtypes.c: stcenums.h stcenumtypes.c.template
( top_builddir=`cd $(top_builddir) && pwd`; \
cd $(srcdir) && glib-mkenums --template stcenumtypes.c.template stcenums.h ) > \
stcenumtypes.c.tmp && mv stcenumtypes.c.tmp stcenumtypes.c
BUILT_SOURCES = \
stcenumtypes.h stcenumtypes.c \
stcmarshal.h stcmarshal.c \
$(NULL)
lib_LTLIBRARIES=libstc-1.la
libstc_1includedir=$(includedir)/stc-1/stc
libstc_1include_HEADERS= \
stc.h \
stcenums.h \
stcenumtypes.h \
stcerror.h \
stcitem.h \
stcmonitor.h \
stcoperation.h \
$(NULL)
libstc_1_la_SOURCES = \
$(BUILT_SOURCES) \
stcenums.h \
stcerror.h stcerror.c \
stcitem.h stcitem.c \
stcmonitor.h stcmonitor.c \
stcoperation.h stcoperation.c \
stcprivate.h \
stcmount.h stcmount.c \
stcmountmonitor.h stcmountmonitor.c \
$(NULL)
libstc_1_la_CPPFLAGS = \
-DG_LOG_DOMAIN=\"libstc-1\" \
$(NULL)
libstc_1_la_CFLAGS = \
$(GLIB_CFLAGS) \
$(GUDEV_CFLAGS) \
$(NULL)
libstc_1_la_LIBADD = \
$(GLIB_LIBS) \
$(GUDEV_LIBS) \
$(NULL)
# ----------------------------------------------------------------------------------------------------
sbin_PROGRAMS = stc
stc_SOURCES = \
stc.c \
$(NULL)
stc_CPPFLAGS = \
-DG_LOG_DOMAIN=\"stc\" \
$(NULL)
stc_CFLAGS = \
$(GLIB_CFLAGS) \
$(NULL)
stc_LDFLAGS = \
$(GLIB_LIBS) \
$(builddir)/libstc-1.la \
$(NULL)
# ----------------------------------------------------------------------------------------------------
daemondir = ${libdir}/stc-1
daemon_PROGRAMS = stcd
stcd_SOURCES = \
stcd.c \
gposixsignal.h gposixsignal.c \
$(NULL)
stcd_CPPFLAGS = \
-DG_LOG_DOMAIN=\"stcd\" \
$(NULL)
stcd_CFLAGS = \
$(GLIB_CFLAGS) \
$(NULL)
stcd_LDFLAGS = \
$(GLIB_LIBS) \
$(builddir)/libstc-1.la \
$(NULL)
# ----------------------------------------------------------------------------------------------------
TESTS = stc-test
noinst_PROGRAMS = stc-test
stc_test_SOURCES = \
test.c \
$(NULL)
stc_test_CFLAGS = \
-DG_LOG_DOMAIN=\"stc-test\" \
$(NULL)
stc_test_LDADD = \
$(GLIB_LIBS) \
$(builddir)/libstc-1.la \
$(NULL)
# ----------------------------------------------------------------------------------------------------
profiledir = $(sysconfdir)/profile.d
profile_SCRIPTS = stc-bash-completion.sh
# ----------------------------------------------------------------------------------------------------
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = stc-1.pc
# ----------------------------------------------------------------------------------------------------
CLEANFILES =
EXTRA_DIST = \
$(profile_SCRIPTS) \
stc-1.pc.in \
$(NULL)
clean-local :
rm -f *~ $(BUILT_SOURCES)
|