Imported Upstream version 1.1.1
[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         cpu.h\
8         hdd.h hdd_hddtemp.c\
9         lmsensor.h lmsensor.c\
10         measure.h measure.c \
11         nvidia.h\
12         plog.h plog.c\
13         pmutex.h pmutex.c\
14         psensor.h psensor.c\
15         ptime.h ptime.c\
16         pio.h pio.c\
17         slog.c slog.h\
18         temperature.c temperature.h\
19         url.c url.h
20
21 AM_CPPFLAGS = -Wall -Werror
22
23 if ATASMART
24 libpsensor_a_SOURCES += hdd_atasmart.c
25 LIBS += $(ATASMART_LIBS)
26 AM_CPPFLAGS += $(ATASMART_CFLAGS)
27 endif
28
29 if NVIDIA
30 libpsensor_a_SOURCES += nvidia.c
31 endif
32
33 if LIBATIADL
34 LIBS += $(LIBATIADL_LIBS)
35 AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
36 libpsensor_a_SOURCES += amd.c
37 endif
38
39 if GTOP
40 libpsensor_a_SOURCES += cpu.c
41 LIBS += $(GTOP_LIBS)
42 AM_CPPFLAGS += $(GTOP_CFLAGS)
43 endif
44
45 if JSON
46 libpsensor_a_SOURCES += psensor_json.h psensor_json.c
47 LIBS += $(JSON_LIBS)
48 AM_CPPFLAGS += $(JSON_CFLAGS)
49 endif
50
51 EXTRA_DIST=$(libpsensor_a_SOURCES) \
52         amd.c \
53         cpu.c \
54         nvidia.c