gperf is autotoolized now...
This commit is contained in:
parent
b2fe83dc2c
commit
3993c8b9df
|
@ -13,8 +13,12 @@ siccc_CFLAGS =
|
||||||
siccc_CXXFLAGS = ${AM_CXXFLAGS} -DDEBUG -ggdb -I./mongoose/
|
siccc_CXXFLAGS = ${AM_CXXFLAGS} -DDEBUG -ggdb -I./mongoose/
|
||||||
siccc_LDFLAGS = -ldl -pthread
|
siccc_LDFLAGS = -ldl -pthread
|
||||||
EXTRA_DIST= static/* src/eventlist.txt
|
EXTRA_DIST= static/* src/eventlist.txt
|
||||||
src/Foohash.H: src/eventrouter.gperf
|
|
||||||
gperf -LC++ -ZFoohash -Ktxt -H hacksh --null-strings -E -n -t -S1 < $< > $@
|
GPERFFLAGS = -C -k2 -LC++ -ZFoohash -Ktxt -H hacksh --null-strings -E -n -t -S1
|
||||||
|
|
||||||
|
|
||||||
|
src/Foohash.H: src/eventrouter.gperf
|
||||||
|
$(GPERF) $(GPERFFLAGS) < $< > $@
|
||||||
|
|
||||||
testfoohash_SOURCES= src/testfoohash.cc src/Foohash.H
|
testfoohash_SOURCES= src/testfoohash.cc src/Foohash.H
|
||||||
testfoohash_CXXFLAGS = ${AM_CXXFLAGS} -DDEBUG -ggdb -O0
|
testfoohash_CXXFLAGS = ${AM_CXXFLAGS} -DDEBUG -ggdb -O0
|
||||||
|
|
|
@ -14,7 +14,8 @@ AC_PROG_CXX
|
||||||
|
|
||||||
PKG_CHECK_MODULES([LIBEVENTSTUFF], [libevent > 2.0.0])
|
PKG_CHECK_MODULES([LIBEVENTSTUFF], [libevent > 2.0.0])
|
||||||
|
|
||||||
|
AM_MISSING_PROG([GPERF], [gperf])
|
||||||
|
|
||||||
AC_CHECK_PROGS(gengetopt, gengetopt, [false])
|
AC_CHECK_PROGS(gengetopt, gengetopt, [false])
|
||||||
GENGETOPT=$gengetopt
|
GENGETOPT=$gengetopt
|
||||||
AC_SUBST(GENGETOPT)
|
AC_SUBST(GENGETOPT)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
struct RouterOp
|
struct RouterOp
|
||||||
{
|
{
|
||||||
const char *txt;
|
const char *name;
|
||||||
int op;
|
int op;
|
||||||
};
|
};
|
||||||
%%
|
%%
|
||||||
|
|
|
@ -9,7 +9,7 @@ using std::cout;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
|
||||||
/*struct RouterOp {*/
|
/*struct RouterOp {*/
|
||||||
//const char *txt;
|
//const char *name;
|
||||||
//int op;
|
//int op;
|
||||||
/*};*/
|
/*};*/
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ int main(int argc, char *argv[])
|
||||||
blub = fh.in_word_set("/static" , sizeof("/static")-1);
|
blub = fh.in_word_set("/static" , sizeof("/static")-1);
|
||||||
if(blub)
|
if(blub)
|
||||||
cout << "found! : "
|
cout << "found! : "
|
||||||
<< blub->txt
|
<< blub->name
|
||||||
<< " ,op:"
|
<< " ,op:"
|
||||||
<< blub->op
|
<< blub->op
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
Loading…
Reference in New Issue