fixed amd support build
[psensor.git] / src / Makefile.am
index 194ed36..a165593 100644 (file)
@@ -8,19 +8,22 @@ endif
 
 if LIBMICROHTTPD
 if JSON
-if LUA
 SUBDIRS += server
 endif
 endif
-endif
 
-AM_CPPFLAGS = -Wall -pedantic -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
+AM_CPPFLAGS = -Wall -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 = \