-SUBDIRS = plib lib unity glade
+SUBDIRS = lib unity glade
AM_LDFLAGS = -Wl,--as-needed
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_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
LIBS += $(LIBNOTIFY_LIBS)
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)
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