-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (39 loc) · 758 Bytes
/
Makefile
File metadata and controls
49 lines (39 loc) · 758 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
CC = gcc
#CFLAGS = -Wall -std=gnu99 ${DEBUGFLAG} -DDEBUG
CFLAGS = -Wall -std=gnu99 ${OPTFLAG} -DNDEBUG
OPTFLAG = -O3
DEBUGFLAG = -g3 -ggdb
LINKER = gcc
LFLAGS = -lpthread
SSRC = \
list.c \
net.c \
sthreads.c \
scontrol.c \
shared.c \
main.c
CSRC= \
list.c \
net.c \
cthreads.c \
ccontrol.c \
client.c
PSRC = \
list.c \
net.c \
pthreads.c \
pcontrol.c \
shared.c \
proxy.c
SOBJS = $(SSRC:.c=.o)
COBJS = $(CSRC:.c=.o)
POBJS = $(PSRC:.c=.o)
all: webserver client proxy
webserver: $(SOBJS)
$(LINKER) $(LFLAGS) $(SOBJS) -o $@
client: $(COBJS)
$(LINKER) $(LFLAGS) $(COBJS) -o $@
proxy: $(POBJS)
$(LINKER) $(LFLAGS) $(POBJS) -o $@
clean:
rm $(SOBJS) $(COBJS) $(POBJS) client webserver proxy