added module to handle log
[ppastats.git] / src / Makefile.am
index dd085c6..03bb962 100644 (file)
@@ -1,16 +1,19 @@
 
-AM_CPPFLAGS = -Wall -std=gnu99\
+AM_CPPFLAGS = -Wall -std=gnu99 -Werror\
         -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
        $(CURL_CFLAGS) $(JSON_CFLAGS)
 
 LIBS += $(CURL_LIBS) $(JSON_LIBS)
 
+DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@
+
 bin_PROGRAMS = ppastats
 ppastats_SOURCES = \
        cache.h cache.c\
        html.h html.c\
        io.h io.c\
        list.h list.c\
+       log.h log.c\
        lp.h lp.c\
        lp_json.h lp_json.c\
        lp_ws.h lp_ws.c\