-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
27 lines (19 loc) · 832 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
all: tfrc-client tfrc-server
tfrc-server: tfrc-server.o logQueue.o lossLList.o tfrc.o
gcc -ggdb -Wall tfrc-server.o tfrc.o logQueue.o lossLList.o -o tfrc-server -lm
tfrc-server.o: tfrc-server.c
gcc -ggdb -Wall -o tfrc-server.o -c tfrc-server.c
logQueue.o: logQueue.c
gcc -ggdb -Wall -o logQueue.o -c logQueue.c
lossLList.o: lossLList.c
gcc -ggdb -Wall -o lossLList.o -c lossLList.c
tfrc-client: tfrc-client.o tfrc.o clientresources.o
gcc -ggdb -Wall -o tfrc-client tfrc-client.o tfrc.o clientresources.o -lpthread -lm
tfrc-client.o: tfrc_client.c
gcc -ggdb -Wall -o tfrc-client.o -c tfrc_client.c -lpthread -lm
clientresources.o: clientresources.c
gcc -ggdb -Wall -o clientresources.o -c clientresources.c -lm
tfrc.o: tfrc.c
gcc -ggdb -Wall -o tfrc.o -c tfrc.c -lm
clean:
rm -f *.o *~ tfrc-server tfrc-client core