From fe6e229f8334d408ce7ff0c8607f48c2654f8c74 Mon Sep 17 00:00:00 2001 From: john stone Date: Fri, 22 Nov 2013 14:03:01 +0100 Subject: [PATCH] Build Foohash class --- Makefile.am | 9 +++++++-- src/routerin.cc | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index bd3e241..682e627 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,11 +6,16 @@ ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} AM_CXXFLAGS = -std=c++11 bin_PROGRAMS=siccc -siccc_SOURCES = src/options.c src/sicmain.cc mongoose/mongoose.c -siccc_CFLAGS = +BUILT_SOURCES=src/Foohash.H + +siccc_SOURCES = src/Foohash.H src/options.c src/routerin.cc src/sicmain.cc mongoose/mongoose.c siccc_CFLAGS = siccc_CXXFLAGS = ${AM_CXXFLAGS} -DDEBUG -ggdb -I./mongoose/ -Darschlecken siccc_LDFLAGS = -ldl -pthread +src/Foohash.H: src/eventlist.txt + gperf -LC++ -ZFoohash -E < $< > $@ + + options.c: options.ggo options.h: options.ggo diff --git a/src/routerin.cc b/src/routerin.cc index 302a7c5..06e9c99 100644 --- a/src/routerin.cc +++ b/src/routerin.cc @@ -1,4 +1,9 @@ +#include + +using std::strcmp; +#include "Foohash.H" + namespace routerin { class EventRouter { @@ -24,7 +29,7 @@ class StaticEventHandler:public BaseHandler{ ///files/ (index in vector) -///dfiles/ (files am date hochgeladen) +///date/ (files am date hochgeladen) ///static/ (statisches html ausliefern)