X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2FMakefile.am;h=b4267156880df689c9132d1f2b434883a2bc8653;hp=c7052b4195b18016993b768177327e462a1fe39c;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hpb=0f8920132b54243de7e911c56c87ae88300d1592 diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index c7052b4..b426715 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -2,24 +2,32 @@ noinst_LIBRARIES = libpsensor.a libpsensor_a_SOURCES = \ amd.h\ + bcm2835.c bcm2835.h\ bool.h\ color.h color.c\ - cpu.h\ hdd.h hdd_hddtemp.c\ - lmsensor.h lmsensor.c\ - measure.h measure.c \ + lmsensor.h\ + measure.h measure.c\ nvidia.h\ + parray.h\ + pgtop2.h\ plog.h plog.c\ pmutex.h pmutex.c\ psensor.h psensor.c\ ptime.h ptime.c\ pio.h pio.c\ + pudisks2.h\ slog.c slog.h\ temperature.c temperature.h\ url.c url.h AM_CPPFLAGS = -Wall -Werror +if SENSORS +libpsensor_a_SOURCES += lmsensor.c +LIBS += $(SENSORS_LIBS) +endif + if ATASMART libpsensor_a_SOURCES += hdd_atasmart.c LIBS += $(ATASMART_LIBS) @@ -37,7 +45,7 @@ libpsensor_a_SOURCES += amd.c endif if GTOP -libpsensor_a_SOURCES += cpu.c +libpsensor_a_SOURCES += pgtop2.c LIBS += $(GTOP_LIBS) AM_CPPFLAGS += $(GTOP_CFLAGS) endif @@ -48,7 +56,16 @@ LIBS += $(JSON_LIBS) AM_CPPFLAGS += $(JSON_CFLAGS) endif +if LIBUDISKS2 +libpsensor_a_SOURCES += pudisks2.c +LIBS += $(LIBUDISKS2_LIBS) +AM_CPPFLAGS += $(LIBUDISKS2_CFLAGS) +endif + EXTRA_DIST=$(libpsensor_a_SOURCES) \ amd.c \ - cpu.c \ - nvidia.c + pgtop2.c \ + lmsensor.c \ + nvidia.c \ + psensor_json.h psensor_json.c \ + pudisks2.c