endif
endif
-# -no-deprecated-declarations to avoid some glib deprecation warnings
-AM_CPPFLAGS = -Wno-deprecated-declarations -Wall -Werror \
+AM_CPPFLAGS =-Wall -Werror \
-DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
-DDATADIR=\""$(datadir)"\"\
-DPSENSOR_DESKTOP_FILE=\""psensor.desktop"\"\
lib/libpsensor.a \
$(GTK_LIBS)\
$(PTHREAD_LIBS)\
- $(SENSORS_LIBS)
+ $(SENSORS_LIBS) -lm
if GTK
if X11
LIBS += $(ATASMART_LIBS)
endif
+if LIBUDISKS2
+LIBS += $(LIBUDISKS2_LIBS)
+endif
+
if UNITY
psensor_SOURCES += ui_unity.h ui_unity.c
AM_CPPFLAGS += $(UNITY_CFLAGS)
endif
endif
-EXTRA_DIST = description.txt psensor.schemas
-
psensor.1: main.c $(top_srcdir)/configure.ac
$(MAKE) $(AM_MAKEFLAGS) psensor$(EXEEXT)
help2man --include=description.txt -N --name="Temperature monitoring application" --output=psensor.1 ./psensor$(EXEEXT)
gsettings_SCHEMAS=psensor.gschema.xml
-EXTRA_DIST=$(gsettings_SCHEMAS)
+EXTRA_DIST = description.txt $(gsettings_SCHEMAS)
@GSETTINGS_RULES@