-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
45 lines (32 loc) · 830 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
41
42
43
44
45
select: client server battleship nonetworking
server: server.o networking.o
gcc -o server server.o networking.o
client: client.o networking.o
gcc -o client client.o networking.o
battleship: secondarymain.o networking.o battleship.o
gcc -o battleship secondarymain.o networking.o battleship.o
nonetworking: main.o
gcc -o nonetworking main.o
main.o: main.c
gcc -c main.c
server.o: server.c networking.h
gcc -c server.c
client.o: client.c networking.h
gcc -c client.c
networking.o: networking.c networking.h
gcc -c networking.c
battleship.o: battleship.c battleship.h
gcc -c battleship.c
secondarymain.o: secondarymain.c networking.h battleship.h
gcc -c secondarymain.c
run:
./battleship
clean:
rm *.o
rm *~
rm ./
rm server
rm client
rm secondarymain
rm battleship
rm nonetworking