X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2FMakefile.am;h=b4267156880df689c9132d1f2b434883a2bc8653;hp=4fc188cbaf91f1df508ba9541fbd2b6d1028360e;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hpb=ba0ded662ced0e4334ac0652d8f7991f485f0899 diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 4fc188c..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 pmem.c pmem.h +libpsensor_a_SOURCES += pgtop2.c LIBS += $(GTOP_LIBS) AM_CPPFLAGS += $(GTOP_CFLAGS) endif @@ -48,8 +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 \ + pgtop2.c \ + lmsensor.c \ nvidia.c \ - pmem.c pmem.h + psensor_json.h psensor_json.c \ + pudisks2.c