-SUBDIRS = plib lib unity glade
+SUBDIRS = lib glade
AM_LDFLAGS = -Wl,--as-needed
-if JSON
-SUBDIRS += libpsensor_json
-endif
-
if LIBMICROHTTPD
if JSON
SUBDIRS += server
endif
endif
-AM_CPPFLAGS = -Wall -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
+AM_CPPFLAGS = -Wall -pedantic -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/unity \
$(GTK_CFLAGS)\
$(GCONF_CFLAGS)\
$(SENSORS_CFLAGS)
-if LIBATIADL
-else
-AM_CPPFLAGS += -pedantic
-endif
-
DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@
LIBS = \
- plib/libplib.a \
lib/libpsensor.a \
$(GTK_LIBS)\
$(GCONF_LIBS)\
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
LIBS += $(NVIDIA_LIBS)
endif
+if LIBATIADL
+AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
+LIBS += $(LIBATIADL_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