X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2FMakefile.am;h=7082480858ad5e22e15052c19cd13bd5909d262a;hp=9c777cae699a282487bfa1a2cb2f1a59aa79219c;hb=6383482793bf693521624778095e70eddb7dae1f;hpb=82b743a766ce466826d01e639222c98883d03c28 diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 9c777ca..7082480 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -9,18 +9,26 @@ libpsensor_a_SOURCES = \ color.h color.c \ log.h log.c \ psensor.h psensor.c\ - hdd.h hdd.c\ + hdd.h\ nvidia.h \ lmsensor.h lmsensor.c \ p_io.h p_io.c \ url.c url.h +AM_CPPFLAGS= + +if ATASMART +libpsensor_a_SOURCES += hdd_atasmart.c +LIBS += $(ATASMART_LIBS) +AM_CPPFLAGS += $(ATASMART_CFLAGS) +else +libpsensor_a_SOURCES += hdd_hddtemp.c +endif + if NVIDIA libpsensor_a_SOURCES += nvidia.c endif -AM_CPPFLAGS= - if LIBATIADL LIBS += $(LIBATIADL_LIBS) AM_CPPFLAGS += $(LIBATIADL_CFLAGS)