-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 1.01 KB
/
Makefile
File metadata and controls
34 lines (23 loc) · 1.01 KB
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
32
33
34
CC = g++
CFLAGS = -g -Wall
LDFLAGS = -lpthread
OBJS = proxy_parse.o proxy_server_with_cache.o threadpool.o connect_tunnel.o logger.o net_util.o
all: proxy
proxy: $(OBJS)
$(CC) $(CFLAGS) -o proxy $(OBJS) $(LDFLAGS)
proxy_server_with_cache.o: proxy_server_with_cache.c proxy_parse.h threadpool.h connect_tunnel.h logger.h net_util.h
$(CC) $(CFLAGS) -c proxy_server_with_cache.c $(LDFLAGS)
proxy_parse.o: proxy_parse.c proxy_parse.h
$(CC) $(CFLAGS) -c proxy_parse.c $(LDFLAGS)
threadpool.o: threadpool.c threadpool.h
$(CC) $(CFLAGS) -c threadpool.c $(LDFLAGS)
connect_tunnel.o: connect_tunnel.c connect_tunnel.h
$(CC) $(CFLAGS) -c connect_tunnel.c $(LDFLAGS)
logger.o: logger.c logger.h
$(CC) $(CFLAGS) -c logger.c $(LDFLAGS)
net_util.o: net_util.c net_util.h
$(CC) $(CFLAGS) -c net_util.c $(LDFLAGS)
clean:
rm -f proxy *.o
tar:
tar -cvzf ass1.tgz proxy_server_with_cache.c README Makefile proxy_parse.c proxy_parse.h threadpool.c threadpool.h connect_tunnel.c connect_tunnel.h logger.c logger.h net_util.c net_util.h