Fix compilation on systems with older compilers.
[tor.git] / src / lib / log / include.am
blob5b9f7113baf64a903bc5e19c788217e06c14975e
2 noinst_LIBRARIES += src/lib/libtor-log.a
4 if UNITTESTS_ENABLED
5 noinst_LIBRARIES += src/lib/libtor-log-testing.a
6 endif
8 # ADD_C_FILE: INSERT SOURCES HERE.
9 src_lib_libtor_log_a_SOURCES =                  \
10         src/lib/log/escape.c                    \
11         src/lib/log/ratelim.c                   \
12         src/lib/log/log.c                       \
13         src/lib/log/log_sys.c                   \
14         src/lib/log/util_bug.c
16 if WIN32
17 src_lib_libtor_log_a_SOURCES += src/lib/log/win32err.c
18 endif
20 src_lib_libtor_log_testing_a_SOURCES = \
21         $(src_lib_libtor_log_a_SOURCES)
22 src_lib_libtor_log_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
23 src_lib_libtor_log_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
25 # ADD_C_FILE: INSERT HEADERS HERE.
26 noinst_HEADERS +=                                       \
27         src/lib/log/escape.h                            \
28         src/lib/log/ratelim.h                           \
29         src/lib/log/log.h                               \
30         src/lib/log/log_sys.h                           \
31         src/lib/log/util_bug.h                          \
32         src/lib/log/win32err.h