-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile.am
95 lines (75 loc) · 2.05 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
############################################################
# The library
#-----------------------------------------------------------
ACLOCAL_AMFLAGS = -I m4
if BUILD_LIBRARY
lib_LTLIBRARIES = libinotify.la
nobase_include_HEADERS = sys/inotify.h
libinotify_la_SOURCES = \
utils.c \
dep-list.c \
inotify-watch.c \
watch-set.c \
watch.c \
worker-thread.c \
worker.c \
controller.c
if !HAVE_PTHREAD_BARRIER
libinotify_la_SOURCES += compat/pthread_barrier.c
endif
if !HAVE_ATFUNCS
libinotify_la_SOURCES += compat/atfuncs.c
endif
if !HAVE_OPENAT
libinotify_la_SOURCES += compat/openat.c
endif
if !HAVE_FDOPENDIR
libinotify_la_SOURCES += compat/fdopendir.c
endif
if !HAVE_FSTATAT
libinotify_la_SOURCES += compat/fstatat.c
endif
libinotify_la_CFLAGS = -I. -DNDEBUG @PTHREAD_CFLAGS@
libinotify_la_LDFLAGS = @PTHREAD_LIBS@ -export-symbols libinotify.sym
endif
############################################################
# Test suite
#-----------------------------------------------------------
EXTRA_PROGRAMS = check_libinotify
test: check_libinotify
@echo Running test suite...
@./check_libinotify
.PHONY: test
check_libinotify_SOURCES = \
tests/core/log.cc \
tests/core/event.cc \
tests/core/action.cc \
tests/core/request.cc \
tests/core/response.cc \
tests/core/inotify_client.cc \
tests/core/consumer.cc \
tests/core/journal.cc \
tests/core/test.cc \
tests/start_stop_test.cc \
tests/start_stop_dir_test.cc \
tests/fail_test.cc \
tests/notifications_test.cc \
tests/notifications_dir_test.cc \
tests/update_flags_test.cc \
tests/update_flags_dir_test.cc \
tests/open_close_test.cc \
tests/symlink_test.cc \
tests/bugs_test.cc \
tests/tests.cc
check_libinotify_CXXFLAGS = @PTHREAD_CFLAGS@
check_libinotify_LDFLAGS = @PTHREAD_LIBS@
if LINUX
check_libinotify_CXXFLAGS += -std=c++0x
endif
if !HAVE_PTHREAD_BARRIER
check_libinotify_SOURCES += compat/pthread_barrier.c
endif
if BUILD_LIBRARY
check_libinotify_LDADD = libinotify.la
endif
noinst_programs = check_libinotify