-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (40 loc) · 1.62 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
39
40
41
42
43
44
45
46
# Macros
CC = g++
CFLAGS = -g -Wall -D_REENTRANT
#OBJ = main.o keyboard.o timer.o iniParser.o incomingConnectionsHandle.o outgoingConnectionsHandler.o signalHandler.o keepAlive.o logEntry.o beaconConnect.o indexSearch.o metaData.o
OBJ = main.o indexLookup.o keyboard.o clientThread.o timer.o signalHandler.o keepAliveTimer_thread.o incomingConnectionsHandle.o outgoingConnectionsHandler.o
#LIBS = -lcrypto -lpthread
#INC =
LIBS = -L/home/scf-22/csci551b/openssl/lib -lcrypto -lnsl -lsocket -lresolv
INC = -I/home/scf-22/csci551b/openssl/include
# Explicit rule
all: sv_node
sv_node: $(OBJ)
$(CC) $(CFLAGS) -o sv_node $(OBJ) $(INC) $(LIBS)
install:
clean:
rm -rf *.o sv_node
main.o: main.cpp
$(CC) $(CFLAGS) -c main.cpp $(INC)
timer.o: timer.cpp
$(CC) $(CFLAGS) -c timer.cpp $(INC)
clientThread.o: clientThread.cpp
$(CC) $(CFLAGS) -c clientThread.cpp $(INC)
indexLookup.o: indexLookup.cpp
$(CC) $(CFLAGS) -c indexLookup.cpp $(INC)
keyboard.o: keyboard.cpp
$(CC) $(CFLAGS) -c keyboard.cpp $(INC)
incomingConnectionsHandle.o: incomingConnectionsHandle.cpp
$(CC) $(CFLAGS) -c incomingConnectionsHandle.cpp $(INC)
outgoingConnectionsHandler.o: outgoingConnectionsHandler.cpp
$(CC) $(CFLAGS) -c outgoingConnectionsHandler.cpp $(INC)
signalHandler.o: signalHandler.cpp
$(CC) $(CFLAGS) -c signalHandler.cpp $(INC)
keepAliveTimer_thread.o: keepAliveTimer_thread.cpp
$(CC) $(CFLAGS) -c keepAliveTimer_thread.cpp $(INC)
#beaconConnect.o: beaconConnect.cpp
# $(CC) $(CFLAGS) -c beaconConnect.cpp $(INC)
#indexSearch.o: indexSearch.cpp
# $(CC) $(CFLAGS) -c indexSearch.cpp $(INC)
#metaData.o: metaData.cpp
# $(CC) $(CFLAGS) -c metaData.cpp $(INC)