-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 734 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CC = gcc
CPPFLAGS = -DDEBUG -DLOG_LEVEL=LOG_DEBUG
CFLAGS = -Wall -g
LDLIBS = -laio
.PHONY: all build clean pack
build: all
all: aws
aws: aws.o sock_util.o http_parser.o
aws.o: aws.c utils/sock_util.h utils/debug.h utils/util.h http-parser/http_parser.h aws.h
http_parser.o: http-parser/http_parser.c http-parser/http_parser.h
$(CC) $(CPPFLAGS) -I. $(CFLAGS) -c -o $@ $<
sock_util.o: utils/sock_util.c utils/sock_util.h
$(CC) $(CPPFLAGS) -I. $(CFLAGS) -c -o $@ $<
pack: clean
-rm -f ../src.zip
zip -r ../src.zip aws.c aws.h http-parser/http_parser.c http-parser/http_parser.h \
utils/sock_util.c utils/sock_util.h utils/debug.h utils/util.h utils/w_epoll.h \
Makefile
clean:
-rm -f ../src.zip
-rm -f *.o
-rm -f aws