switched to 3.9.7 defaults
[psensor-pkg-ubuntu.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 lmsensor.c\
9         measure.h measure.c \
10         nvidia.h\
11         plog.h plog.c\
12         pmutex.h pmutex.c\
13         psensor.h psensor.c\
14         ptime.h ptime.c\
15         pio.h pio.c\
16         slog.c slog.h\
17         temperature.c temperature.h\
18         url.c url.h
19
20 AM_CPPFLAGS = -Wall -Werror
21
22 if ATASMART
23 libpsensor_a_SOURCES += hdd_atasmart.c
24 LIBS += $(ATASMART_LIBS)
25 AM_CPPFLAGS += $(ATASMART_CFLAGS)
26 endif
27
28 if NVIDIA
29 libpsensor_a_SOURCES += nvidia.c
30 endif
31
32 if LIBATIADL
33 LIBS += $(LIBATIADL_LIBS)
34 AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
35 libpsensor_a_SOURCES += amd.c
36 endif
37
38 if GTOP
39 libpsensor_a_SOURCES += pgtop2.c pgtop2.h
40 LIBS += $(GTOP_LIBS)
41 AM_CPPFLAGS += $(GTOP_CFLAGS)
42 endif
43
44 if JSON
45 libpsensor_a_SOURCES += psensor_json.h psensor_json.c
46 LIBS += $(JSON_LIBS)
47 AM_CPPFLAGS += $(JSON_CFLAGS)
48 endif
49
50 if LIBUDISKS2
51 libpsensor_a_SOURCES += pudisks2.c pudisks2.h
52 LIBS += $(LIBUDISKS2_LIBS)
53 AM_CPPFLAGS += $(LIBUDISKS2_CFLAGS)
54 endif
55
56 EXTRA_DIST=$(libpsensor_a_SOURCES) \
57         amd.c \
58         pgtop2.c pgtop2.h \
59         nvidia.c \
60         pudisks2.c pudisks2.h