-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·50 lines (47 loc) · 1.49 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
47
48
49
50
# _ _ _ _ _ ___
#| \_/ || | | || __|
#| \_/ || V V || _|
#|_| |_| \_n_/ |_|
#
#@author : naper
#@description : c++ web framework
#Filename: Makefile
OBJ=help
BINDIR=obj
WININSTDIR=install
ARCHDIR=targz
all: $(OBJ)
help:
@echo '**************************************'
@echo '* MWF lib Building *'
@echo '**************************************'
@echo
@echo 'make compil : Build libmwf'
@echo 'make compil-c++11 : using std c++ 11'
@echo 'make link : linking libmwf'
compil: compilmsg
compilmsg:
@echo ===================[Compiling MWF]===================
g++ -c Frame/mwf.cpp -o mwf.o
g++ -c Utils/mwf_utils.cpp -o utils.o
g++ -c Template/mwf_template.cpp -o template.o
g++ -c Utils/mwf_time.cpp -o time.o
g++ -c Utils/mwf_function.cpp -o function.o
g++ -c Utils/ccgi.cpp -o libcgi.o
#gcc -c Utils/cgic-lib.cpp -o cgi.o
@echo ===================[Finished]===================
compil-c++11:
compil-c++11msg:
g++ -c Frame/mwf.cpp -o mwf.o -std=c++11
g++ -c Utils/utils.cpp -o utils.o -std=c++11
g++ -c Template/template.cpp -o template.o -std=c++11
g++ -c Utils/time.cpp -o time.o -std=c++11
g++ -c Utils/function.cpp -o function.o -std=c++11
#gcc -c Utils/cgic-lib.cpp -o cgi.o
@echo ===================[Finished]===================
link: linkmsg
linkmsg:
@echo ===================[Compiling MWF]===================
#add cgi.o if you have it :p
ar -q libmwflin.a mwf.o utils.o template.o time.o function.o libcgi.o
@echo ===================[Finished]===================