-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (15 loc) · 715 Bytes
/
Copy pathMakefile
File metadata and controls
22 lines (15 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS = -g -Wall -DDEBUG
LDLAGS = -g -Wall -DDEBUG
all : server clientUDP
out/common.o: src/common/common.h src/common/common.c
gcc ${CFLAGS} -c src/common/common.c -o out/common.o
out/server.o: src/server/server.c src/server/server.h src/common/common.c src/common/common.h
gcc ${CFLAGS} -c src/server/server.c -o out/server.o
out/clientUDP.o: src/client/clientUDP.c src/client/client.h src/common/common.c src/common/common.h
gcc ${CFLAGS} -c src/client/clientUDP.c -o out/clientUDP.o
server: out/server.o out/common.o
gcc ${LDLAGS} out/server.o out/common.o -o out/server
clientUDP: out/clientUDP.o out/common.o
gcc ${LDLAGS} out/clientUDP.o out/common.o -o out/clientUDP
clean:
\rm -rf out/*