summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
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