-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 1.27 KB
/
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
CC=g++
INC= -I/opt/dis/include -I/opt/dis/include/dis -D_REENTRANT
LIB= -L/opt/dis/lib64 -lsisci -lpthread
all: client server
dolphin-server.o: dolphin-server.hpp dolphin-server.cpp
g++ -g -Wall $(INC) dolphin-server.cpp -c -o dolphin-server.o
server-main.o: server_main.cpp
g++ -g -Wall $(INC) server_main.cpp -c -o server-main.o
dolphin-client.o: dolphin-client.hpp dolphin-client.cpp
g++ -g -Wall $(INC) dolphin-client.cpp -c -o dolphin-client.o
filereader.o: FileReader.hpp FileReader.cpp interface.hpp
g++ -g -Wall $(INC) FileReader.cpp -c -o filereader.o
filewriter.o: FileWriter.hpp FileWriter.cpp interface.hpp
g++ -g -Wall $(INC) FileWriter.cpp -c -o filewriter.o
client-main.o: client_main.cpp
g++ -g -Wall $(INC) client_main.cpp -c -o client-main.o
client: dolphin-client.o client-main.o filereader.o
g++ -o client -g filereader.o dolphin-client.o client-main.o $(LIB)
server: dolphin-server.o server-main.o filewriter.o
g++ -o server -g dolphin-server.o server-main.o filewriter.o $(LIB)
filedemo: filereader.hpp filereader.cpp filewriter.hpp filewriter.cpp interface.hpp main.cpp
g++ -c -o filereader.o filereader.cpp
g++ -c -o filewriter.o filewriter.cpp
g++ -c -o main.o main.cpp
g++ -o filedemo main.o filereader.o filewriter.o
clean:
rm -f *.o client server