X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2FMakefile.am;h=823320767b28c5ae1fae6cec917661da5887a644;hb=c14414799a4caf1569648fce1b61aceb95f6cafc;hp=194ed36d133b9ce360d113002029d6ffcd4f5785;hpb=38cc811d320211c3a456c93af506891892d486b2;p=psensor.git diff --git a/src/Makefile.am b/src/Makefile.am index 194ed36..8233207 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,20 +1,16 @@ -SUBDIRS = plib lib unity glade +SUBDIRS = lib glade -AM_LDFLAGS = -Wl,--as-needed - -if JSON -SUBDIRS += libpsensor_json -endif +# -export-dynamic is need for defining handlers in the glade file. +AM_LDFLAGS = -Wl,--as-needed -export-dynamic if LIBMICROHTTPD if JSON -if LUA SUBDIRS += server endif endif -endif -AM_CPPFLAGS = -Wall -pedantic -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\ +# -no-deprecated-declarations to avoid some glib deprecation warnings +AM_CPPFLAGS = -Wno-deprecated-declarations -Wall -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\ -I$(top_srcdir)/src/lib \ -I$(top_srcdir)/src/unity \ $(GTK_CFLAGS)\ @@ -24,24 +20,30 @@ AM_CPPFLAGS = -Wall -pedantic -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\ DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@ LIBS = \ - plib/libplib.a \ lib/libpsensor.a \ $(GTK_LIBS)\ $(GCONF_LIBS)\ + $(PTHREAD_LIBS)\ $(SENSORS_LIBS) bin_PROGRAMS = psensor psensor_SOURCES = \ - compat.h \ cfg.h cfg.c \ graph.h graph.c \ main.c \ ui.h ui.c \ + ui_appindicator.h \ ui_color.h ui_color.c \ ui_graph.h ui_graph.c \ ui_pref.h ui_pref.c \ ui_sensorlist.h ui_sensorlist.c \ - ui_sensorpref.h ui_sensorpref.c + ui_sensorpref.h ui_sensorpref.c \ + ui_status.h ui_status.c + +if GTOP +AM_CPPFLAGS += $(GTOP_CFLAGS) +LIBS += $(GTOP_LIBS) +endif if LIBNOTIFY psensor_SOURCES += ui_notify.h ui_notify.c @@ -50,7 +52,7 @@ AM_CPPFLAGS += $(LIBNOTIFY_CFLAGS) endif if APPINDICATOR -psensor_SOURCES += ui_appindicator.h ui_appindicator.c +psensor_SOURCES += ui_appindicator.c LIBS += $(APPINDICATOR_LIBS) AM_CPPFLAGS += $(APPINDICATOR_CFLAGS) endif @@ -60,21 +62,41 @@ AM_CPPFLAGS += $(NVIDIA_CFLAGS) LIBS += $(NVIDIA_LIBS) endif +if LIBATIADL +AM_CPPFLAGS += $(LIBATIADL_CFLAGS) +LIBS += $(LIBATIADL_LIBS) +endif + +if ATASMART +AM_CPPFLAGS += $(ATASMART_CFLAGS) +LIBS += $(ATASMART_LIBS) +endif + if UNITY +psensor_SOURCES += ui_unity.h ui_unity.c AM_CPPFLAGS += $(UNITY_CFLAGS) -LIBS += unity/libpsensor_unity.a $(UNITY_LIBS) +LIBS += $(UNITY_LIBS) endif if CURL if JSON -psensor_SOURCES += rsensor.h rsensor.c plib/url.c plib/url.h +psensor_SOURCES += rsensor.h rsensor.c LIBS += $(CURL_LIBS) $(JSON_LIBS) AM_CPPFLAGS += $(CURL_CFLAGS) $(JSON_CFLAGS) endif endif dist_man_MANS = psensor.1 -EXTRA_DIST = description.txt +EXTRA_DIST = description.txt psensor.schemas + + +if GCONF +schemadir = $(GCONF_SCHEMA_FILE_DIR) +schema_DATA = psensor.schemas + +install-data-local: + GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_srcdir)/src/$(schema_DATA) +endif psensor.1: main.c $(top_srcdir)/configure.ac $(MAKE) $(AM_MAKEFLAGS) psensor$(EXEEXT)