Merge tag 'upstream/1.2.0'
[psensor-pkg-debian.git] / src / lib / Makefile.am
1 noinst_LIBRARIES = libpsensor.a
2
3 libpsensor_a_SOURCES = \
4         amd.h\
5         bool.h\
6         color.h color.c\
7         hdd.h hdd_hddtemp.c\
8         lmsensor.h\
9         measure.h measure.c\
10         nvidia.h\
11         parray.h\
12         pgtop2.h\
13         plog.h plog.c\
14         pmutex.h pmutex.c\
15         psensor.h psensor.c\
16         ptime.h ptime.c\
17         pio.h pio.c\
18         pudisks2.h\
19         slog.c slog.h\
20         temperature.c temperature.h\
21         url.c url.h
22
23 AM_CPPFLAGS = -Wall -Werror
24
25 if SENSORS
26 libpsensor_a_SOURCES += lmsensor.c
27 LIBS += $(SENSORS_LIBS)
28 endif
29
30 if ATASMART
31 libpsensor_a_SOURCES += hdd_atasmart.c
32 LIBS += $(ATASMART_LIBS)
33 AM_CPPFLAGS += $(ATASMART_CFLAGS)
34 endif
35
36 if NVIDIA
37 libpsensor_a_SOURCES += nvidia.c
38 endif
39
40 if LIBATIADL
41 LIBS += $(LIBATIADL_LIBS)
42 AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
43 libpsensor_a_SOURCES += amd.c
44 endif
45
46 if GTOP
47 libpsensor_a_SOURCES += pgtop2.c
48 LIBS += $(GTOP_LIBS)
49 AM_CPPFLAGS += $(GTOP_CFLAGS)
50 endif
51
52 if JSON
53 libpsensor_a_SOURCES += psensor_json.h psensor_json.c
54 LIBS += $(JSON_LIBS)
55 AM_CPPFLAGS += $(JSON_CFLAGS)
56 endif
57
58 if LIBUDISKS2
59 libpsensor_a_SOURCES += pudisks2.c
60 LIBS += $(LIBUDISKS2_LIBS)
61 AM_CPPFLAGS += $(LIBUDISKS2_CFLAGS)
62 endif
63
64 EXTRA_DIST=$(libpsensor_a_SOURCES) \
65         amd.c \
66         pgtop2.c \
67         lmsensor.c \
68         nvidia.c \
69         psensor_json.h psensor_json.c \
70         pudisks2.c