X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2FMakefile.am;h=e54717e03da7f2e9563e68fc972b9379684b423c;hb=4be2ee06492365223a3b2043c9da28175fac6041;hp=9529e645d010c06c555c1ae8ce51a63d1f2443a0;hpb=545ca11c8d228885e6514d568027b27d622f895d;p=psensor.git diff --git a/src/Makefile.am b/src/Makefile.am index 9529e64..e54717e 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 @@ -25,9 +26,18 @@ LIBS = \ $(PTHREAD_LIBS)\ $(SENSORS_LIBS) +if GTK +if X11 +if XEXT +if GCONF bin_PROGRAMS = psensor +dist_man_MANS = psensor.1 +endif +endif +endif +endif + psensor_SOURCES = \ - compat.h \ cfg.h cfg.c \ graph.h graph.c \ main.c \ @@ -58,9 +68,11 @@ AM_CPPFLAGS += $(APPINDICATOR_CFLAGS) endif if NVIDIA +if X11 AM_CPPFLAGS += $(NVIDIA_CFLAGS) LIBS += $(NVIDIA_LIBS) endif +endif if LIBATIADL AM_CPPFLAGS += $(LIBATIADL_CFLAGS) @@ -86,14 +98,12 @@ AM_CPPFLAGS += $(CURL_CFLAGS) $(JSON_CFLAGS) endif endif -schemadir = $(GCONF_SCHEMA_FILE_DIR) -schema_DATA = psensor.schemas - -dist_man_MANS = psensor.1 EXTRA_DIST = description.txt psensor.schemas +if GCONF +schemadir = $(GCONF_SCHEMA_FILE_DIR) +schema_DATA = psensor.schemas -if GCONF_SCHEMAS_INSTALL install-data-local: GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_srcdir)/src/$(schema_DATA) endif