fixed compilation with AMD/ATI GPU monitoring support(submitted by Lubos Stanek).
[psensor.git] / src / Makefile.am
index e567c83..8a1c982 100644 (file)
@@ -8,11 +8,9 @@ endif
 
 if LIBMICROHTTPD
 if JSON
-if LUA
 SUBDIRS += server
 endif
 endif
-endif
 
 AM_CPPFLAGS = -Wall -pedantic -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
        -I$(top_srcdir)/src/lib \
@@ -40,7 +38,13 @@ psensor_SOURCES = \
        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_sensorlist.h ui_sensorlist.c \
+       ui_sensorpref.h ui_sensorpref.c
+
+if GTOP
+AM_CPPFLAGS += $(GTOP_CFLAGS)
+LIBS += $(GTOP_LIBS)
+endif
 
 if LIBNOTIFY
 psensor_SOURCES += ui_notify.h ui_notify.c
@@ -59,6 +63,11 @@ AM_CPPFLAGS += $(NVIDIA_CFLAGS)
 LIBS +=  $(NVIDIA_LIBS)
 endif
 
+if LIBATIADL
+AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
+LIBS += $(LIBATIADL_LIBS)
+endif
+
 if UNITY
 AM_CPPFLAGS += $(UNITY_CFLAGS)
 LIBS += unity/libpsensor_unity.a $(UNITY_LIBS) 
@@ -73,7 +82,7 @@ endif
 endif
 
 dist_man_MANS = psensor.1
-
+EXTRA_DIST = description.txt
 
 psensor.1: main.c $(top_srcdir)/configure.ac
        $(MAKE) $(AM_MAKEFLAGS) psensor$(EXEEXT)