added --use_libwqsmart option
[psensor.git] / src / lib / Makefile.am
1 noinst_LIBRARIES = libpsensor.a
2
3 libpsensor_a_SOURCES = \
4         amd.h \
5         color.h color.c \
6         cpu.h \
7         hdd.h hdd_hddtemp.c\
8         lmsensor.h lmsensor.c \
9         log.h log.c \
10         measure.h measure.c \
11         nvidia.h \
12         psensor.h psensor.c\
13         pio.h pio.c \
14         url.c url.h
15
16 AM_CPPFLAGS = -Wall -Werror
17
18 if ATASMART
19 libpsensor_a_SOURCES += hdd_atasmart.c
20 LIBS += $(ATASMART_LIBS)
21 AM_CPPFLAGS += $(ATASMART_CFLAGS)
22 endif
23
24 if NVIDIA
25 libpsensor_a_SOURCES += nvidia.c
26 endif
27
28 if LIBATIADL
29 LIBS += $(LIBATIADL_LIBS)
30 AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
31 libpsensor_a_SOURCES += amd.c
32 endif
33
34 if GTOP
35 libpsensor_a_SOURCES += cpu.c
36 LIBS += $(GTOP_LIBS)
37 AM_CPPFLAGS += $(GTOP_CFLAGS)
38 endif
39
40 if JSON
41 libpsensor_a_SOURCES += psensor_json.h psensor_json.c
42 LIBS += $(JSON_LIBS)
43 AM_CPPFLAGS += $(JSON_CFLAGS)
44 endif
45
46 EXTRA_DIST=$(libpsensor_a_SOURCES) \
47         amd.c \
48         cpu.c \
49         nvidia.c