summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-12-08 21:25:26 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-12-08 21:25:26 +0000
commit4b3ea5b714adf374d9ac7af009b8f7b8a65f21f0 (patch)
treea9dd02e970d37e6ec44c9cbe05a4ee050b856a2f /src/Makefile
parentupdated changelog (diff)
flex/bison vs ragel
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@38 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/Makefile b/src/Makefile
index 5a4cebf..387fbec 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -33,8 +33,7 @@ EXECUTABLE := tcpproxy
C_OBJS := log.o \
options.o \
- cfg_scan.o \
- cfg_parse.o \
+ cfg_parser.o \
slist.o \
string_list.o \
sig_handler.o \
@@ -49,13 +48,8 @@ C_SRCS := $(C_OBJS:%.o=%.c)
all: $(EXECUTABLE)
-cfg_scan.c: cfg_scan.lex cfg_parse.h
- $(FLEX) -Cem -o $@ cfg_scan.lex
-
-cfg_parse.h: cfg_parse.c
-
-cfg_parse.c: cfg_parse.y
- $(BISON) -d -o $@ $<
+cfg_parser.c: cfg_parser.rl
+ $(RAGEL) -C -G2 -o $@ $<
%.d: %.c
@set -e; rm -f $@; \
@@ -87,8 +81,7 @@ clean:
rm -f *.o
rm -f *.d
rm -f *.d.*
- rm -f cfg_scan.c
- rm -f cfg_parse.c cfg_parse.h
+ rm -f cfg_parser.c
rm -f $(EXECUTABLE)
cleanall: clean