File: Makefile

package info (click to toggle)
haskell-attoparsec 0.14.4-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 876 kB
  • sloc: haskell: 4,749; ansic: 170; makefile: 22
file content (19 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC := cc
CFLAGS := -O3 -Wall
# To make the code about 6% faster:
# CFLAGS += -fwhole-program --combine
CPPFLAGS := -I$(HOME)/hg/http-parser

all: c-http

c-http: rfc2616.c http_parser.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^

clean:
	rm -f *.hi *.o c-http

http_parser.c: http_parser.h
	curl -O https://raw.githubusercontent.com/joyent/http-parser/master/http_parser.c

http_parser.h:
	curl -O https://raw.githubusercontent.com/joyent/http-parser/master/http_parser.h