aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a8bbfe437762d676cb1e16569ff477b714b40dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CC = gcc
LD = gcc
AR = ar

CFLAGS += -Wall -Wextra -g -O0
LDFLAGS +=
CPPFLAGS += -Isrc
LDLIBS += -luv

libuvh.a: src/uvh.o src/http_parser.o src/sds.o
	$(AR) rcs $@ $^

hello: examples/hello.o libuvh.a
	$(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)

chunked: examples/chunked.o libuvh.a
	$(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)

.PHONY: clean
clean:
	rm -f src/*.o
	rm -f examples/*.o
	rm -f libuvh.a
	rm -f hello