-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.win
27 lines (25 loc) · 868 Bytes
/
makefile.win
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
#***********************************************
# Author: [email protected]
# change time:2022-04-15 19:29:51
# description: makefile of project
#**********************************************/
all:main
cc=g++
obj=main
obj_source=./src/cpp/main.cpp
pro_source=./src/hpp/cppweb.h ./src/hpp/argc.h ./src/hpp/email.h
source=./src/cpp/main.cpp ./src/hpp/cppweb.h ./src/hpp/proxy.h ./src/hpp/config.h ./src/hpp/route.h ./src/hpp/argc.h
link=-lpthread -lwsock32
link_ssl=-lpthread -lwsock32 -lssl -lcrypto
ssl_macro=-D CPPWEB_OPENSSL
debug_macro=-D CPPWEB_DEBUG
compile_option=-std=c++11
clean_files=server.pid access.log main.exe
main: $(source)
$(cc) -O2 $(obj_source) -o $(obj) $(link) $(compile_option)
clean:
rm -f $(clean_files)
ssl: $(source)
$(cc) -O2 $(obj_source) -o $(obj) $(ssl_macro) $(link_ssl)
debug:
$(cc) -g $(obj_source) -o $(obj) $(link)