# Makefile for CGIparser
# This Parser is written with flex
# It escapes back the characters of
# strings that have been sent
# by a FORM to a CGI script

OUT=cgiparser
SOURCE=$(OUT).flex
TESTSTR="asdasd%52as%22d%5f%5F%60%70asd"
TESTFILE=$(OUT).test

exe:
	flex < $(SOURCE)
	gcc -lfl lex.yy.c
	mv a.out $(OUT)
	cat $(TESTFILE)|$(OUT) |less
	echo $(TESTSTR)|$(OUT)

clean:
	rm lex.yy.c
	rm $(OUT)
