Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.666 kb
#OPT=-O0 -g -Wall -Wextra -Werror
OPT=-O2
test: http_parser.o test.c
gcc $(OPT) http_parser.o test.c -o $@
http_parser.o: http_parser.c http_parser.h Makefile
gcc $(OPT) -c http_parser.c
http_parser.c: http_parser.rl Makefile
ragel -s -G2 http_parser.rl -o $@
tags: http_parser.rl http_parser.h test.c
ctags $^
clean:
rm -f *.o http_parser.c test http_parser.tar
package: http_parser.c
@rm -rf /tmp/http_parser && mkdir /tmp/http_parser && \
cp LICENSE README.md Makefile http_parser.c http_parser.rl \
http_parser.h test.c /tmp/http_parser && \
cd /tmp && \
tar -cf http_parser.tar http_parser/
@echo /tmp/http_parser.tar
.PHONY: clean package
Jump to Line
Something went wrong with that request. Please try again.