File: Makefile.am

package info (click to toggle)
snoopy 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,988 kB
  • sloc: ansic: 7,167; sh: 4,514; makefile: 1,095
file content (126 lines) | stat: -rw-r--r-- 3,241 bytes parent folder | download
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
### Include common Makefile configuration
#
include   $(top_srcdir)/build/Makefile.am.common



### Init empty program install list, but always link with given library
#
noinst_PROGRAMS =



### Programs required by the test suite
#
noinst_PROGRAMS     += snoopy-test
snoopy_test_SOURCES  = \
    action-common.h \
    action-run.c \
    action-run.h \
    action-run-datasource.c \
    action-run-datasource.h \
    action-run-everything.c \
    action-run-everything.h \
    action-run-messageformat.c \
    action-run-messageformat.h \
    action-run-output.c \
    action-run-output.h \
    action-stress.c \
    action-stress.h \
    action-unit.c \
    action-unit.h \
    action-unit-action.c \
    action-unit-action.h \
    action-unit-action-log-syscall-exec.c \
    action-unit-action-log-syscall-exec.h \
    action-unit-action-log-message-dispatch.c \
    action-unit-action-log-message-dispatch.h \
    action-unit-datasource.c \
    action-unit-datasource.h \
    action-unit-error.c \
    action-unit-error.h \
    action-unit-outputregistry.c \
    action-unit-outputregistry.h \
    action-unit-util.c \
    action-unit-util.h \
    action-unit-util-parser.c \
    action-unit-util-parser.h \
    action-unit-util-syslog.c \
    action-unit-util-syslog.h \
    snoopy-test.c
snoopy_test_LDADD  = \
    ../../src/libsnoopy-test-cli.la

if CONFIGFILE_ENABLED
snoopy_test_SOURCES += \
    action-run-configfile.c \
    action-run-configfile.h \
    action-unit-ext-ini.c \
    action-unit-ext-ini.h
endif

if FILTERING_ENABLED
snoopy_test_SOURCES += \
    action-run-filter.c \
    action-run-filter.h \
    action-run-filterchain.c \
    action-run-filterchain.h \
    action-unit-filterregistry.c \
    action-unit-filterregistry.h
endif

if THREAD_SAFETY_ENABLED
snoopy_test_SOURCES += \
    action-stress-threads.c \
    action-stress-threads.h \
    action-stress-threadsexec.c \
    action-stress-threadsexec.h
endif

if DATASOURCE_ENABLED_cmdline
snoopy_test_SOURCES += \
    action-unit-datasource-cmdline.c \
    action-unit-datasource-cmdline.h
endif

if DATASOURCE_ENABLED_systemd_unit_name
snoopy_test_SOURCES += \
    action-unit-util-systemd.c \
    action-unit-util-systemd.h
endif

if DATASOURCE_ENABLED_ipaddr
snoopy_test_SOURCES += \
    action-unit-util-utmp.c \
    action-unit-util-utmp.h
endif

noinst_PROGRAMS                    += spaceparent
spaceparent_SOURCES                 = spaceparent.c



### Create a program called "space parent", for testing filter exclude_spawns_of
#
all-local: spaceparent
	@cp spaceparent "space parent"

clean-local-this-dir:
	rm -f "space parent"



### Create test library, whole
#
# This library reads path to snoopy.ini from SNOOPY_INI environmental variable.
#
noinst_LTLIBRARIES        = libsnoopy-test-execve-wrapper-env-ini-path.la
libsnoopy_test_execve_wrapper_env_ini_path_la_SOURCES =
libsnoopy_test_execve_wrapper_env_ini_path_la_LIBADD  = \
    ../../src/libsnoopy-no-entrypoint.la \
    ../../src/entrypoint/libsnoopy-entrypoint-execve-wrapper-test-configfile-env.la
#
# This needs to be added as automake does not create shared library for
# things in noinst_LTLIBRARIES.
#
libsnoopy_test_execve_wrapper_env_ini_path_la_LDFLAGS = -module -rpath /nowhere