-
Notifications
You must be signed in to change notification settings - Fork 5
/
makefile
31 lines (22 loc) · 1.39 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
CC=g++
CFLAGS=-lmine -c -Wall -std=c++11
all: server
server: functions.o files.o server.o daemon.o request.o
#~ $(CC) functions.o server.o -o server -lm -lboost_regex -lboost_thread -lboost_system
$(CC) files.o functions.o crypt.o request.o daemon.o -o daemon -static /usr/lib/x86_64-linux-gnu/libboost_system.a /usr/lib/x86_64-linux-gnu/libboost_thread.a /usr/lib/x86_64-linux-gnu/libboost_regex.a -pthread -L -lm -lboost_regex -lboost_thread -lboost_system -lboost_filesystem -lcrypto -lcryptopp -ljsoncpp
#~ $(CC) functions.o crypt.o daemon.o -o daemon -static /usr/lib/i386-linux-gnu/libboost_system.a /usr/lib/i386-linux-gnu/libboost_thread.a /usr/lib/i386-linux-gnu/libboost_regex.a -pthread -L -lm -lboost_regex -lboost_thread -lboost_system -lcrypto -lcryptopp -ljsoncpp
make clean
request.o:
$(CC) $(CFLAGS) request.cpp -lm -lboost_regex -lboost_thread -lboost_system
functions.o:
$(CC) $(CFLAGS) functions/functions.cpp -lm -lboost_regex -lboost_thread -lboost_system
files.o:
$(CC) $(CFLAGS) functions/files.cpp -lm -lboost_filesystem -lboost_regex -lboost_thread -lboost_system
server.o:
#~ $(CC) $(CFLAGS) server.cpp -lm -lboost_regex -lboost_thread -lboost_system
daemon.o: crypt.o
$(CC) $(CFLAGS) daemon.cpp -pthread -L -lm -lboost_regex -lboost_thread -lboost_system -lcrypto -lcryptopp -ljsoncpp
crypt.o:
$(CC) $(CFLAGS) crypt.cpp -lcrypto -lcryptopp -ljsoncpp
clean:
rm -rf *.o