-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·35 lines (23 loc) · 989 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
27
28
29
30
31
32
33
34
35
#CC=clang --analyze
#CXX=clang++ --analyze
CC=gcc
CXX=g++
#CC=i686-pc-mingw32-gcc
#CXX=i686-pc-mingw32-g++
#CC=i686-pc-cygwin-gcc
#CXX=i686-pc-cygwin-gcc
BINDIR=./bin
CFLAGS=-g -IExternalProjects/safelist -IExternalProjects/threadutils
SERVERSOURCEFILENAMES=servermain.cpp fdutils.cpp socketconnection_base.cpp tlssocketconnection.cpp serversocket.cpp packet.cpp debugger.cpp
SERVEROBJECTS=$(SERVERSOURCEFILENAMES:.cpp=.o)
CLIENTSOURCEFILENAMES=clientmain.cpp fdutils.cpp socketconnection_base.cpp tlssocketconnection.cpp clientsocket.cpp packet.cpp debugger.cpp
CLIENTOBJECTS=$(CLIENTSOURCEFILENAMES:.cpp=.o)
all : $(SERVERSOURCES) server $(CLIENTSOURCES) client
server : $(SERVEROBJECTS)
$(CXX) $(SERVEROBJECTS) -lpthread -lssl -lcrypto -o server
client : $(CLIENTOBJECTS)
$(CXX) $(CLIENTOBJECTS) -lpthread -lssl -lcrypto -o client
.cpp.o :
$(CXX) $(CFLAGS) -c $< -o $@
clean :
rm -f $(SERVEROBJECTS) $(CLIENTOBJECTS) server client