X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2FMakefile.am;h=b4267156880df689c9132d1f2b434883a2bc8653;hp=511fe349a4c695e384a9d6e11f3e9879dcbf985a;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hpb=bedf8ee232e1617cd8f25047471bdea598f3bc00 diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 511fe34..b426715 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -1,14 +1,38 @@ noinst_LIBRARIES = libpsensor.a -libpsensor_a_CFLAGS = -pedantic -Werror - libpsensor_a_SOURCES = \ - measure.h measure.c \ - color.h color.c \ + amd.h\ + bcm2835.c bcm2835.h\ + bool.h\ + color.h color.c\ + hdd.h hdd_hddtemp.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\ - hdd.h hdd.c\ - nvidia.h \ - lmsensor.h lmsensor.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) +AM_CPPFLAGS += $(ATASMART_CFLAGS) +endif if NVIDIA libpsensor_a_SOURCES += nvidia.c @@ -16,5 +40,32 @@ endif if LIBATIADL LIBS += $(LIBATIADL_LIBS) -AM_CPPFLAGS = $(LIBATIADL_CFLAGS) -endif \ No newline at end of file +AM_CPPFLAGS += $(LIBATIADL_CFLAGS) +libpsensor_a_SOURCES += amd.c +endif + +if GTOP +libpsensor_a_SOURCES += pgtop2.c +LIBS += $(GTOP_LIBS) +AM_CPPFLAGS += $(GTOP_CFLAGS) +endif + +if JSON +libpsensor_a_SOURCES += psensor_json.h psensor_json.c +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 \ + pgtop2.c \ + lmsensor.c \ + nvidia.c \ + psensor_json.h psensor_json.c \ + pudisks2.c