X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2FMakefile.am;h=0e49961b02256929a5ff4e93f350c8e99889bbba;hb=a63d6ac6c828cd5a62446ec9d47b4e79d4e221e6;hp=32ea76593fd15d6c098c4616b102a93e91318954;hpb=c6d9fd757f429c0889e1a7620c7e7be69e6f71c9;p=psensor.git diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 32ea765..0e49961 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -1,15 +1,27 @@ noinst_LIBRARIES = libpsensor.a -libpsensor_a_CFLAGS = -Werror - libpsensor_a_SOURCES = \ amd.h \ + cpu.h \ measure.h measure.c \ color.h color.c \ + log.h log.c \ psensor.h psensor.c\ - hdd.h hdd.c\ + hdd.h\ nvidia.h \ - lmsensor.h lmsensor.c + lmsensor.h lmsensor.c \ + pio.h pio.c \ + url.c url.h + +AM_CPPFLAGS = -Wall -Werror + +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 @@ -17,12 +29,23 @@ endif if LIBATIADL LIBS += $(LIBATIADL_LIBS) -AM_CPPFLAGS = $(LIBATIADL_CFLAGS) +AM_CPPFLAGS += $(LIBATIADL_CFLAGS) libpsensor_a_SOURCES += amd.c -else -libpsensor_a_CFLAGS += -pedantic +endif + +if GTOP +libpsensor_a_SOURCES += cpu.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 EXTRA_DIST=$(libpsensor_a_SOURCES) \ amd.c \ + cpu.c \ nvidia.c \ No newline at end of file