-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (44 loc) · 1.79 KB
/
Copy pathMakefile
File metadata and controls
61 lines (44 loc) · 1.79 KB
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
50
51
52
53
54
55
56
57
58
59
60
### CSCI 551 Fall 08
# Final Proj pt2
#
# Name: Byung-Yeob Kim & Akshat Gupta
#
# Usage:
# make - Builds servant
#
# make clean - Cleans all files create during the building process
#
# port: 15896 - 15911
CXX=g++
CXXFLAGS= -g -Wall -D_REENTRANT -I/home/scf-22/csci551b/openssl/include
LINKFLAGS = -lcrypto -lresolv -lnsl -lsocket -lcrypto -L/home/scf-22/csci551b/openssl/lib
sv_node: servant.o bitvector.o indice.o util.o init.o msg.o neighbor_list.o sig_handlers.o error.o event.o globals.o dispatch.o lru.o
$(CXX) $(CXXFLAGS) servant.o bitvector.o indice.o util.o init.o msg.o neighbor_list.o error.o event.o globals.o dispatch.o lru.o $(LINKFLAGS) -o sv_node
servant.o: servant.cpp includes.h constants.h startup.h init.h error.h msg.h neighbor_list.h constants.h
$(CXX) $(CXXFLAGS) -c servant.cpp
bitvector.o: bitvector.cpp bitvector.h
$(CXX) $(CXXFLAGS) -c bitvector.cpp
indice.o: indice.cpp indice.h bitvector.h constants.h
$(CXX) $(CXXFLAGS) -c indice.cpp
sig_handlers.o: sig_handlers.cpp sig_handlers.h constants.h
$(CXX) $(CXXFLAGS) -c sig_handlers.cpp
init.o: init.cpp init.h startup.h constants.h
$(CXX) $(CXXFLAGS) -c init.cpp
msg.o: msg.cpp msg.h error.h constants.h
$(CXX) $(CXXFLAGS) -c msg.cpp
neighbor_list.o: neighbor_list.cpp neighbor_list.h msg.h constants.h
$(CXX) $(CXXFLAGS) -c neighbor_list.cpp
error.o: error.cpp error.h constants.h
$(CXX) $(CXXFLAGS) -c error.cpp
event.o: event.cpp event.h error.h constants.h
$(CXX) $(CXXFLAGS) -c event.cpp
util.o: util.cpp util.h msg.h constants.h
$(CXX) $(CXXFLAGS) -c util.cpp
globals.o: globals.cpp globals.h
$(CXX) $(CXXFLAGS) -c globals.cpp
dispatch.o: dispatch.cpp dispatch.h util.h error.h event.h globals.h
$(CXX) $(CXXFLAGS) -c dispatch.cpp
lru.o: lru.cpp lru.h
$(CXX) $(CXXFLAGS) -c lru.cpp
clean:
rm -f sv_node *.o