diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/LuaJIT-1.1.7/src/Makefile | 252 |
1 files changed, 0 insertions, 252 deletions
diff --git a/libraries/LuaJIT-1.1.7/src/Makefile b/libraries/LuaJIT-1.1.7/src/Makefile deleted file mode 100644 index b678fe1..0000000 --- a/libraries/LuaJIT-1.1.7/src/Makefile +++ /dev/null | |||
@@ -1,252 +0,0 @@ | |||
1 | # makefile for building Lua | ||
2 | # see ../INSTALL for installation instructions | ||
3 | # see ../Makefile and luaconf.h for further customization | ||
4 | |||
5 | # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= | ||
6 | |||
7 | # Your platform. See PLATS for possible values. | ||
8 | PLAT= none | ||
9 | |||
10 | CC= gcc -m32 | ||
11 | CFLAGS= -O2 -fomit-frame-pointer -Wall $(MYCFLAGS) $(COCOCFLAGS) $(JITCFLAGS) | ||
12 | AR= ar rcu | ||
13 | RANLIB= ranlib | ||
14 | RM= rm -f | ||
15 | LIBS= -lm $(MYLIBS) | ||
16 | |||
17 | MYCFLAGS= | ||
18 | MYLDFLAGS= | ||
19 | MYLIBS= | ||
20 | |||
21 | # ++ Coco ========= | ||
22 | # Default: autodetect gccasm/setjmp/ucontext/fibers context switch method. | ||
23 | COCOCFLAGS= | ||
24 | # Force use of setjmp (instead of gccasm). | ||
25 | #COCOCFLAGS= -DCOCO_USE_SETJMP | ||
26 | # Force use of ucontext (instead of gccasm or setjmp). | ||
27 | #COCOCFLAGS= -DCOCO_USE_UCONTEXT | ||
28 | # Uncomment this if you want to compile LuaJIT without Coco. | ||
29 | # This effectively disables yielding from JIT compiled functions. | ||
30 | #COCOCFLAGS= -DCOCO_DISABLE | ||
31 | # -- Coco ========= | ||
32 | |||
33 | # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE ========= | ||
34 | |||
35 | PLATS= linux bsd macosx solaris mingw cygwin posix generic linux_rl bsd_rl macosx_rl | ||
36 | |||
37 | # ++ Coco ========= | ||
38 | COCO_O= lcoco.o | ||
39 | # -- Coco ========= | ||
40 | |||
41 | # ++ LuaJIT ========= | ||
42 | DASMDIR= ../dynasm | ||
43 | DASMFLAGS= | ||
44 | DASMDISTFLAGS= -LN | ||
45 | |||
46 | # This assumes you already have a copy of (plain) Lua 5.1 installed | ||
47 | # You can use luajit, too (built with the pre-processed headers from the dist) | ||
48 | DASM= lua $(DASMDIR)/dynasm.lua | ||
49 | |||
50 | JITCFLAGS= -I$(DASMDIR) | ||
51 | JIT_O= ljit_core.o ljit_mem.o ljit_dasm.o ljit_backend.o | ||
52 | JITLIB_O= ljitlib.o | ||
53 | |||
54 | ALL_DH = ljit_x86.h | ||
55 | # -- LuaJIT ========= | ||
56 | |||
57 | LUA_A= liblua.a | ||
58 | CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \ | ||
59 | lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \ | ||
60 | lundump.o lvm.o lzio.o $(COCO_O) $(JIT_O) | ||
61 | LIB_O= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o \ | ||
62 | lstrlib.o loadlib.o $(JITLIB_O) linit.o | ||
63 | |||
64 | # Standalone has been renamed to avoid conflicts during installation | ||
65 | LUA_T= luajit | ||
66 | LUA_O= lua.o | ||
67 | |||
68 | LUAC_T= luac | ||
69 | LUAC_O= luac.o print.o | ||
70 | |||
71 | ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O) | ||
72 | # Do not build luac by default | ||
73 | #ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) | ||
74 | ALL_T= $(LUA_A) $(LUA_T) | ||
75 | ALL_A= $(LUA_A) | ||
76 | |||
77 | default: $(PLAT) | ||
78 | |||
79 | all: $(ALL_T) | ||
80 | |||
81 | o: $(ALL_O) | ||
82 | |||
83 | a: $(ALL_A) | ||
84 | |||
85 | $(LUA_A): $(CORE_O) $(LIB_O) | ||
86 | $(AR) $@ $? | ||
87 | $(RANLIB) $@ | ||
88 | |||
89 | $(LUA_T): $(LUA_O) $(LUA_A) | ||
90 | $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) | ||
91 | |||
92 | $(LUAC_T): $(LUAC_O) $(LUA_A) | ||
93 | $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS) | ||
94 | |||
95 | # ++ LuaJIT ========= | ||
96 | ljit_x86.h: ljit_x86.dasc ljit_x86_inline.dash ljit_x86.dash | ||
97 | $(DASM) $(DASMFLAGS) -o $@ ljit_x86.dasc | ||
98 | |||
99 | distclean: clean | ||
100 | $(DASM) $(DASMDISTFLAGS) -o ljit_x86.h ljit_x86.dasc | ||
101 | |||
102 | cleaner: clean | ||
103 | $(RM) $(ALL_DH) | ||
104 | # -- LuaJIT ========= | ||
105 | |||
106 | clean: | ||
107 | $(RM) $(ALL_T) $(ALL_O) | ||
108 | |||
109 | depend: | ||
110 | @$(CC) $(CFLAGS) -MM l*.c print.c | ||
111 | |||
112 | echo: | ||
113 | @echo "PLAT = $(PLAT)" | ||
114 | @echo "CC = $(CC)" | ||
115 | @echo "CFLAGS = $(CFLAGS)" | ||
116 | @echo "AR = $(AR)" | ||
117 | @echo "RANLIB = $(RANLIB)" | ||
118 | @echo "RM = $(RM)" | ||
119 | @echo "MYCFLAGS = $(MYCFLAGS)" | ||
120 | @echo "MYLDFLAGS = $(MYLDFLAGS)" | ||
121 | @echo "MYLIBS = $(MYLIBS)" | ||
122 | |||
123 | # convenience targets for popular platforms | ||
124 | |||
125 | none: | ||
126 | @echo "Please choose a platform:" | ||
127 | @echo " $(PLATS)" | ||
128 | |||
129 | bsd: | ||
130 | $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E" | ||
131 | |||
132 | bsd_rl: | ||
133 | $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE" MYLIBS="-Wl,-E -lreadline" | ||
134 | |||
135 | generic: | ||
136 | $(MAKE) all MYCFLAGS= | ||
137 | |||
138 | linux: | ||
139 | $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl" | ||
140 | |||
141 | linux_rl: | ||
142 | $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX -DLUA_USE_READLINE" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" | ||
143 | |||
144 | # Mac OS X on Intel Macs only! | ||
145 | macosx: | ||
146 | $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX | ||
147 | # use this on Mac OS X 10.3 | ||
148 | # $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX | ||
149 | |||
150 | macosx_rl: | ||
151 | $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX -DLUA_USE_READLINE" MYLIBS="-lreadline" | ||
152 | |||
153 | mingw: | ||
154 | $(MAKE) "LUA_A=lua51.dll" "LUA_T=luajit.exe" \ | ||
155 | "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \ | ||
156 | "MYCFLAGS=-DLUA_BUILD_AS_DLL -maccumulate-outgoing-args" \ | ||
157 | "MYLIBS=" "MYLDFLAGS=-s" luajit.exe | ||
158 | |||
159 | cygwin: | ||
160 | $(MAKE) "CC=gcc -mno-cygwin" mingw | ||
161 | |||
162 | posix: | ||
163 | $(MAKE) all MYCFLAGS=-DLUA_USE_POSIX | ||
164 | |||
165 | # Solaris x86 only! | ||
166 | solaris: | ||
167 | $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" | ||
168 | |||
169 | # list targets that do not create files (but not all makes understand .PHONY) | ||
170 | .PHONY: all $(PLATS) default o a clean depend echo none cleaner distclean | ||
171 | |||
172 | # DO NOT DELETE | ||
173 | |||
174 | lapi.o: lapi.c lua.h luaconf.h lapi.h lobject.h llimits.h ldebug.h \ | ||
175 | lstate.h ltm.h lzio.h lmem.h lcoco.h ldo.h lfunc.h lgc.h lstring.h \ | ||
176 | ltable.h lundump.h lvm.h | ||
177 | lauxlib.o: lauxlib.c lua.h luaconf.h lauxlib.h | ||
178 | lbaselib.o: lbaselib.c lua.h luaconf.h lauxlib.h lualib.h lcoco.h | ||
179 | lcoco.o: lcoco.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h \ | ||
180 | lzio.h lmem.h lcoco.h ldo.h lvm.h lgc.h | ||
181 | lcode.o: lcode.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h \ | ||
182 | lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h lcoco.h \ | ||
183 | ldo.h lgc.h ltable.h | ||
184 | ldblib.o: ldblib.c lua.h luaconf.h lauxlib.h lualib.h | ||
185 | ldebug.o: ldebug.c lua.h luaconf.h lapi.h lobject.h llimits.h lcode.h \ | ||
186 | llex.h lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h \ | ||
187 | lcoco.h ldo.h lfunc.h lstring.h lgc.h ltable.h lvm.h ljit.h | ||
188 | ldo.o: ldo.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \ | ||
189 | lzio.h lmem.h lcoco.h ldo.h lfunc.h lgc.h lopcodes.h lparser.h \ | ||
190 | lstring.h ltable.h lundump.h lvm.h ljit.h | ||
191 | ldump.o: ldump.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h \ | ||
192 | lzio.h lmem.h lcoco.h lundump.h | ||
193 | lfunc.o: lfunc.c lua.h luaconf.h lfunc.h lobject.h llimits.h lgc.h lmem.h \ | ||
194 | lstate.h ltm.h lzio.h lcoco.h ljit.h | ||
195 | lgc.o: lgc.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \ | ||
196 | lzio.h lmem.h lcoco.h ldo.h lfunc.h lgc.h lstring.h ltable.h | ||
197 | linit.o: linit.c lua.h luaconf.h lualib.h lauxlib.h | ||
198 | liolib.o: liolib.c lua.h luaconf.h lauxlib.h lualib.h | ||
199 | ljit_backend.o: ljit_backend.c lua.h luaconf.h lobject.h llimits.h \ | ||
200 | lstate.h ltm.h lzio.h lmem.h lcoco.h ldo.h lfunc.h lgc.h lstring.h \ | ||
201 | ltable.h lvm.h lopcodes.h ldebug.h ljit.h ljit_hints.h ljit_dasm.h \ | ||
202 | ../dynasm/dasm_proto.h ljit_x86.h | ||
203 | ljit_core.o: ljit_core.c lua.h luaconf.h lobject.h llimits.h lstate.h \ | ||
204 | ltm.h lzio.h lmem.h lcoco.h ldo.h lstring.h lgc.h ltable.h ldebug.h \ | ||
205 | lopcodes.h ljit.h ljit_hints.h luajit.h | ||
206 | ljit_dasm.o: ljit_dasm.c lua.h luaconf.h ljit.h lobject.h llimits.h \ | ||
207 | ljit_dasm.h ../dynasm/dasm_proto.h lmem.h ../dynasm/dasm_x86.h | ||
208 | ljit_mem.o: ljit_mem.c lua.h luaconf.h lmem.h llimits.h ldo.h lobject.h \ | ||
209 | lstate.h ltm.h lzio.h lcoco.h ljit.h ljit_dasm.h ../dynasm/dasm_proto.h | ||
210 | ljitlib.o: ljitlib.c lua.h luaconf.h lauxlib.h luajit.h lualib.h \ | ||
211 | lobject.h llimits.h lstate.h ltm.h lzio.h lmem.h lcoco.h lstring.h \ | ||
212 | lgc.h ltable.h lfunc.h lopcodes.h ljit.h ljit_hints.h | ||
213 | llex.o: llex.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h ltm.h \ | ||
214 | lzio.h lmem.h lcoco.h llex.h lparser.h lstring.h lgc.h ltable.h | ||
215 | lmathlib.o: lmathlib.c lua.h luaconf.h lauxlib.h lualib.h | ||
216 | lmem.o: lmem.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \ | ||
217 | ltm.h lzio.h lmem.h lcoco.h ldo.h | ||
218 | loadlib.o: loadlib.c lua.h luaconf.h lauxlib.h lualib.h luajit.h | ||
219 | lobject.o: lobject.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h \ | ||
220 | ltm.h lzio.h lmem.h lcoco.h lstring.h lgc.h lvm.h | ||
221 | lopcodes.o: lopcodes.c lopcodes.h llimits.h lua.h luaconf.h | ||
222 | loslib.o: loslib.c lua.h luaconf.h lauxlib.h lualib.h | ||
223 | lparser.o: lparser.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h \ | ||
224 | lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h lcoco.h \ | ||
225 | ldo.h lfunc.h lstring.h lgc.h ltable.h | ||
226 | lstate.o: lstate.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \ | ||
227 | ltm.h lzio.h lmem.h lcoco.h ldo.h lfunc.h lgc.h llex.h lstring.h \ | ||
228 | ltable.h ljit.h | ||
229 | lstring.o: lstring.c lua.h luaconf.h lmem.h llimits.h lobject.h lstate.h \ | ||
230 | ltm.h lzio.h lcoco.h lstring.h lgc.h | ||
231 | lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h | ||
232 | ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \ | ||
233 | ltm.h lzio.h lmem.h lcoco.h ldo.h lgc.h ltable.h | ||
234 | ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h | ||
235 | ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h \ | ||
236 | lmem.h lcoco.h lstring.h lgc.h ltable.h | ||
237 | lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h luajit.h | ||
238 | luac.o: luac.c lua.h luaconf.h lauxlib.h ldo.h lobject.h llimits.h \ | ||
239 | lstate.h ltm.h lzio.h lmem.h lcoco.h lfunc.h lopcodes.h lstring.h lgc.h \ | ||
240 | lundump.h | ||
241 | lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \ | ||
242 | llimits.h ltm.h lzio.h lmem.h lcoco.h ldo.h lfunc.h lstring.h lgc.h \ | ||
243 | lundump.h | ||
244 | lvm.o: lvm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \ | ||
245 | lzio.h lmem.h lcoco.h ldo.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h \ | ||
246 | lvm.h | ||
247 | lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h \ | ||
248 | lzio.h lcoco.h | ||
249 | print.o: print.c ldebug.h lstate.h lua.h luaconf.h lobject.h llimits.h \ | ||
250 | ltm.h lzio.h lmem.h lcoco.h lopcodes.h lundump.h | ||
251 | |||
252 | # (end of Makefile) | ||