X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2FMakefile.am;h=5a22d4d3f2e6f3a7ba326f045d7fcefd28fd2e08;hb=9cd75dc72c567208d839e73ee6e4ecf484a08b7c;hp=9c777cae699a282487bfa1a2cb2f1a59aa79219c;hpb=9bffa7f1d797d8d4dfd3d5176fe1066d5e4ffd4c;p=psensor.git diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 9c777ca..5a22d4d 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -1,32 +1,36 @@ noinst_LIBRARIES = libpsensor.a -libpsensor_a_CFLAGS = -Wall -Werror - libpsensor_a_SOURCES = \ amd.h \ - cpu.h \ - measure.h measure.c \ + bool.h \ color.h color.c \ + cpu.h \ + hdd.h hdd_hddtemp.c\ + lmsensor.h lmsensor.c \ log.h log.c \ - psensor.h psensor.c\ - hdd.h hdd.c\ + measure.h measure.c \ nvidia.h \ - lmsensor.h lmsensor.c \ - p_io.h p_io.c \ + psensor.h psensor.c\ + pio.h pio.c \ + slog.c slog.h \ url.c url.h +AM_CPPFLAGS = -Wall -Werror + +if ATASMART +libpsensor_a_SOURCES += hdd_atasmart.c +LIBS += $(ATASMART_LIBS) +AM_CPPFLAGS += $(ATASMART_CFLAGS) +endif + if NVIDIA libpsensor_a_SOURCES += nvidia.c endif -AM_CPPFLAGS= - if LIBATIADL LIBS += $(LIBATIADL_LIBS) AM_CPPFLAGS += $(LIBATIADL_CFLAGS) libpsensor_a_SOURCES += amd.c -else -libpsensor_a_CFLAGS += -pedantic endif if GTOP