-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
40 lines (36 loc) · 1021 Bytes
/
makefile
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
35
36
37
38
39
40
# =================================================
CC = gcc
CFLAGS = -pthread
# =================================================
TARGET_PROXY = proxy_server
OBJECTS_PROYX = \
proxy.o \
handler/error.o \
handler/atomic.o \
handler/socket.o \
handler/signal.o \
# =================================================
TARGET_CLIENT = client
OBJECTS_CLIENT = \
client.o \
handler/error.o \
handler/socket.o \
# =================================================
TARGET_SERVER = web_server
OBJECTS_SERVER = \
server.o \
handler/error.o \
handler/socket.o \
# =================================================
all : $(TARGET_PROXY) $(TARGET_CLIENT) $(TARGET_SERVER)
$(TARGET_PROXY) : $(OBJECTS_PROYX)
$(CC) $(CFLAGS) -o $@ $^
$(TARGET_CLIENT) : $(OBJECTS_CLIENT)
$(CC) $(CFLAGS) -o $@ $^
$(TARGET_SERVER) : $(OBJECTS_SERVER)
$(CC) $(CFLAGS) -o $@ $^
clean:
rm $(TARGET_PROXY) $(TARGET_CLIENT) \
$(TARGET_SERVER) \
*.o handler/*.o
# =================================================