-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile_linux
executable file
·135 lines (87 loc) · 3.63 KB
/
makefile_linux
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Project: se
headers = $(shell echo ./*.h os/*.h)
srcs = $(shell echo ./*.cpp os/*.cpp)
objs = $(srcs:.cpp=.o)
CC = g++
#OBJ = VMManager.o CCompiler.o compiler.o cp.o CR_ABS.o CR_ERROR.o CR_PARSE.o CR_SCAN.o cs.o Function.o LoopTree.o ObjDes.o PubFuncTable.o Request.o ScriptFuncTable.o StdAfx.o SymbolTable.o utility.o VirtualMachine.o VMException.o linuxlib/IsWanted.o os/os.o os/LogCache.o os/ostime.o os/socket.o os/str.o os/thread-pthread.o os/osutils.o os/log.o os/CSS_LOCKEX.o os/ConfigFile.o$(RES)
#OBJ = $(objs) $(RES)
OBJ = $(objs)
BIN = libSE.so.1.0
SOBIN=$(BIN:.so.1.0=.so)
CFLAGS = -g -fPIC -D_VMMANAGER -O2 -fomit-frame-pointer -W -Wall
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
DLLWRAP=g++
CCompiler.o: CCompiler.cpp
$(CC) -c CCompiler.cpp -o CCompiler.o $(CFLAGS)
cp.o: cp.cpp
$(CC) -c cocoR/cp.cpp -o cp.o $(CFLAGS)
CR_ABS.o: CR_ABS.cpp
$(CC) -c CR_ABS.cpp -o CR_ABS.o $(CFLAGS)
CR_ERROR.o: CR_ERROR.cpp
$(CC) -c CR_ERROR.cpp -o CR_ERROR.o $(CFLAGS)
CR_PARSE.o: CR_PARSE.cpp
$(CC) -c CR_PARSE.cpp -o CR_PARSE.o $(CFLAGS)
CR_SCAN.o: CR_SCAN.cpp
$(CC) -c CR_SCAN.cpp -o CR_SCAN.o $(CFLAGS)
cs.o: cs.cpp
$(CC) -c cs.cpp -o cs.o $(CFLAGS)
Function.o: Function.cpp
$(CC) -c Function.cpp -o Function.o $(CFLAGS)
LoopTree.o: LoopTree.cpp
$(CC) -c LoopTree.cpp -o LoopTree.o $(CFLAGS)
ObjDes.o: ObjDes.cpp
$(CC) -c ObjDes.cpp -o ObjDes.o $(CFLAGS)
PubFuncTable.o: PubFuncTable.cpp
$(CC) -c PubFuncTable.cpp -o PubFuncTable.o $(CFLAGS)
Request.o: Request.cpp
$(CC) -c Request.cpp -o Request.o $(CFLAGS)
ScriptFuncTable.o: ScriptFuncTable.cpp
$(CC) -c ScriptFuncTable.cpp -o ScriptFuncTable.o $(CFLAGS)
StdAfx.o: StdAfx.cpp
$(CC) -c StdAfx.cpp -o StdAfx.o $(CFLAGS)
SymbolTable.o: SymbolTable.cpp
$(CC) -c SymbolTable.cpp -o SymbolTable.o $(CFLAGS)
utility.o: utility.cpp
$(CC) -c utility.cpp -o utility.o $(CFLAGS)
VirtualMachine.o: VirtualMachine.cpp
$(CC) -c VirtualMachine.cpp -o VirtualMachine.o $(CFLAGS)
VMException.o: VMException.cpp
$(CC) -c VMException.cpp -o VMException.o $(CFLAGS)
compiler.o: compiler.cpp
$(CC) -c compiler.cpp -o compiler.o $(CFLAGS)
VMManager.o: VMManager.cpp
$(CC) -c VMManager.cpp -o VMManager.o $(CFLAGS)
linuxlib/IsWanted.o:linuxlib/IsWanted.cpp
$(CC) -c linuxlib/IsWanted.cpp -o linuxlib/IsWanted.o $(CFLAGS)
os/os.o: os/os.cpp
$(CC) -c os/os.cpp -o os/os.o $(CFLAGS)
os/ostime.o: os/ostime.cpp
$(CC) -c os/ostime.cpp -o os/ostime.o $(CFLAGS)
os/socket.o: os/socket.cpp
$(CC) -c os/socket.cpp -o os/socket.o $(CFLAGS)
os/ConfigFile..o: os/ConfigFile.cpp
$(CC) -c os/ConfigFile.cpp -o os/ConfigFile.o $(CFLAGS)
os/log.o: os/log.cpp
$(CC) -c os/log.cpp -o os/log.o $(CFLAGS)
os/protected.o: os/protected.cpp
$(CC) -c os/protected.cpp -o os/protected.o $(CFLAGS)
os/thread-pthread.o: os/thread-pthread.cpp
$(CC) -c os/thread-pthread.cpp -o os/thread-pthread.o $(CFLAGS)
os/LogLevel.o: os/LogLevel.cpp
$(CC) -c os/LogLevel.cpp -o os/LogLevel.o $(CFLAGS)
os/CSS_LOCKEX.o: os/CSS_LOCKEX.cpp
$(CC) -c os/CSS_LOCKEX.cpp -o os/CSS_LOCKEX.o $(CFLAGS)
os/mutex.o: os/mutex.cpp
$(CC) -c os/mutex.cpp -o os/mutex.o $(CFLAGS)
os/LogCache.o: os/LogCache.cpp
$(CC) -c os/LogCache.cpp -o os/LogCache.o $(CFLAGS)
os/osutils.o: os/osutils.cpp
$(CC) -c os/osutils.cpp -o os/osutils.o $(CFLAGS)
os/str.o: os/str.cpp
$(CC) -c os/str.cpp -o os/str.o $(CFLAGS)
$(BIN): $(OBJ)
# $(DLLWRAP) -shared -ldl $(OBJ) -o $(BIN)
$(DLLWRAP) -shared -Wl,-soname,$(SOBIN) $(OBJ) -o ./bin/$(BIN) -lc