You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
640 B

  1. EXECUTABLE = server
  2. EXECUTABLECLI = client
  3. CC=g++ -lboost_system -lboost_thread
  4. CFLAGS=-Wall -DDEBUG -Wreorder -D_RENEG_ON_
  5. COMPILE=$(CC) $(CFLAGS)
  6. all: server client
  7. server: server.o ssl_process.o
  8. $(CC) -lpthread -lcrypto -lssl ssl_process.o server.o -o $(EXECUTABLE)
  9. client: client.o ssl_process.o
  10. $(CC) -lpthread -lcrypto -lssl -o $(EXECUTABLECLI) ssl_process.o client.o
  11. ssl_process.o: ssl_process.cpp
  12. $(COMPILE) -o ssl_process.o -c ssl_process.cpp
  13. server.o: server.cpp
  14. $(COMPILE) -o server.o -c server.cpp
  15. client.o: client.cpp
  16. $(COMPILE) -o client.o -c client.cpp
  17. clean:
  18. rm -rf *.o server client