don't use -pedantic when compiling src/server
[psensor.git] / src / lib / Makefile.am
1 noinst_LIBRARIES = libpsensor.a
2
3 libpsensor_a_SOURCES = \
4         amd.h \
5         cpu.h \
6         measure.h measure.c \
7         color.h color.c \
8         log.h log.c \
9         psensor.h psensor.c\
10         hdd.h\
11         nvidia.h \
12         lmsensor.h lmsensor.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 else
23 libpsensor_a_SOURCES += hdd_hddtemp.c
24 endif
25
26 if NVIDIA
27 libpsensor_a_SOURCES += nvidia.c
28 endif
29
30 if LIBATIADL
31 LIBS += $(LIBATIADL_LIBS)
32 AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
33 libpsensor_a_SOURCES += amd.c
34 endif
35
36 if GTOP
37 libpsensor_a_SOURCES += cpu.c
38 LIBS += $(GTOP_LIBS)
39 AM_CPPFLAGS += $(GTOP_CFLAGS)
40 endif
41
42 if JSON
43 libpsensor_a_SOURCES += psensor_json.h psensor_json.c
44 LIBS += $(JSON_LIBS)
45 AM_CPPFLAGS += $(JSON_CFLAGS)
46 endif
47
48 EXTRA_DIST=$(libpsensor_a_SOURCES) \
49         amd.c \
50         cpu.c \
51         nvidia.c