X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2FMakefile.am;h=a37753c7606c2ce6bc4e27a7663568164a948515;hp=6bf03c30c47be5e77113e3804965c4654f3819c0;hb=60f6135a421095b240b984898e555df284f3b77f;hpb=1c6444edc42c4e34b39e1d77f9cffca7aad7e798 diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 6bf03c3..a37753c 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -5,8 +5,8 @@ libpsensor_a_SOURCES = \ bool.h\ color.h color.c\ hdd.h hdd_hddtemp.c\ - lmsensor.h lmsensor.c\ - measure.h measure.c \ + lmsensor.h\ + measure.h measure.c\ nvidia.h\ plog.h plog.c\ pmutex.h pmutex.c\ @@ -19,6 +19,11 @@ libpsensor_a_SOURCES = \ 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) @@ -56,5 +61,6 @@ endif EXTRA_DIST=$(libpsensor_a_SOURCES) \ amd.c \ pgtop2.c pgtop2.h \ + lmsensors.c \ nvidia.c \ pudisks2.c pudisks2.h