X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2FMakefile.am;h=3ddb1e78a1029fc998bf78ec29649921da30881c;hp=15a0e171b3701a6eb523193f5136dc534e4e92bd;hb=c3abbf72410200f22ee7a3b11bb17ae1836bf2b8;hpb=f055e7507526592d3a74c652f5f053701614c9c0 diff --git a/src/Makefile.am b/src/Makefile.am index 15a0e17..3ddb1e7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,7 @@ SUBDIRS = lib glade -AM_LDFLAGS = -Wl,--as-needed +# -export-dynamic is need for defining handlers in the glade file. +AM_LDFLAGS = -Wl,--as-needed -export-dynamic if LIBMICROHTTPD if JSON @@ -8,11 +9,13 @@ SUBDIRS += server endif endif -AM_CPPFLAGS = -Wno-deprecated-declarations -Wall -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\ +AM_CPPFLAGS =-Wall -Werror \ + -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\ + -DDATADIR=\""$(datadir)"\"\ + -DPSENSOR_DESKTOP_FILE=\""psensor.desktop"\"\ -I$(top_srcdir)/src/lib \ -I$(top_srcdir)/src/unity \ $(GTK_CFLAGS)\ - $(GCONF_CFLAGS)\ $(SENSORS_CFLAGS) DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@ @@ -20,13 +23,21 @@ DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@ LIBS = \ lib/libpsensor.a \ $(GTK_LIBS)\ - $(GCONF_LIBS)\ - $(SENSORS_LIBS) + $(PTHREAD_LIBS)\ + $(SENSORS_LIBS) -lm +if GTK +if X11 +if XEXT bin_PROGRAMS = psensor +dist_man_MANS = psensor.1 +endif +endif +endif + psensor_SOURCES = \ - compat.h \ cfg.h cfg.c \ + notify_cmd.c notify_cmd.h \ graph.h graph.c \ main.c \ ui.h ui.c \ @@ -36,7 +47,8 @@ psensor_SOURCES = \ ui_pref.h ui_pref.c \ ui_sensorlist.h ui_sensorlist.c \ ui_sensorpref.h ui_sensorpref.c \ - ui_status.h ui_status.c + ui_status.h ui_status.c \ + pxdg.h pxdg.c if GTOP AM_CPPFLAGS += $(GTOP_CFLAGS) @@ -56,15 +68,26 @@ AM_CPPFLAGS += $(APPINDICATOR_CFLAGS) endif if NVIDIA +if X11 AM_CPPFLAGS += $(NVIDIA_CFLAGS) LIBS += $(NVIDIA_LIBS) endif +endif if LIBATIADL AM_CPPFLAGS += $(LIBATIADL_CFLAGS) LIBS += $(LIBATIADL_LIBS) endif +if ATASMART +AM_CPPFLAGS += $(ATASMART_CFLAGS) +LIBS += $(ATASMART_LIBS) +endif + +if LIBUDISKS2 +LIBS += $(LIBUDISKS2_LIBS) +endif + if UNITY psensor_SOURCES += ui_unity.h ui_unity.c AM_CPPFLAGS += $(UNITY_CFLAGS) @@ -79,10 +102,11 @@ AM_CPPFLAGS += $(CURL_CFLAGS) $(JSON_CFLAGS) endif endif -dist_man_MANS = psensor.1 -EXTRA_DIST = description.txt - 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 = description.txt $(gsettings_SCHEMAS) + +@GSETTINGS_RULES@