aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/LuaJIT-1.1.7/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/LuaJIT-1.1.7/Makefile')
-rw-r--r--libraries/LuaJIT-1.1.7/Makefile130
1 files changed, 0 insertions, 130 deletions
diff --git a/libraries/LuaJIT-1.1.7/Makefile b/libraries/LuaJIT-1.1.7/Makefile
deleted file mode 100644
index 727ccc4..0000000
--- a/libraries/LuaJIT-1.1.7/Makefile
+++ /dev/null
@@ -1,130 +0,0 @@
1# makefile for installing Lua
2# see INSTALL for installation instructions
3# see src/Makefile and src/luaconf.h for further customization
4
5# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
6
7# Your platform. See PLATS for possible values.
8PLAT= none
9
10# Where to install. The installation starts in the src and doc directories,
11# so take care if INSTALL_TOP is not an absolute path.
12INSTALL_TOP= /usr/local
13INSTALL_BIN= $(INSTALL_TOP)/bin
14INSTALL_INC= $(INSTALL_TOP)/include
15INSTALL_LIB= $(INSTALL_TOP)/lib
16INSTALL_MAN= $(INSTALL_TOP)/man/man1
17#
18# You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
19# LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/luajit.pc).
20INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
21INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
22
23# How to install. If your install program does not support "-p", then you
24# may have to run ranlib on the installed liblua.a (do "make ranlib").
25INSTALL= install -p
26INSTALL_EXEC= $(INSTALL) -m 0755
27INSTALL_DATA= $(INSTALL) -m 0644
28#
29# If you don't have install you can use cp instead.
30# INSTALL= cp -p
31# INSTALL_EXEC= $(INSTALL)
32# INSTALL_DATA= $(INSTALL)
33
34# Utilities.
35MKDIR= mkdir -p
36RANLIB= ranlib
37
38# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
39
40# Convenience platforms targets.
41PLATS= linux bsd macosx solaris mingw cygwin posix generic linux_rl bsd_rl macosx_rl
42
43# What to install.
44TO_BIN= luajit
45###TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
46###TO_LIB= liblua.a
47###TO_MAN= lua.1 luac.1
48
49# Lua version and release.
50V= 5.1
51R= 5.1.4
52# LuaJIT version.
53JV= 1.1.7
54
55all: $(PLAT)
56
57$(PLATS) clean:
58 cd src && $(MAKE) $@
59
60test: dummy
61 src/luajit -O -e 'io.write("Hello world, from ", jit.version, "!\n")'
62
63install: dummy
64 cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD) $(INSTALL_LMOD)/jit
65 cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
66 ###cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
67 ###cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
68 ###cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
69 cd jit && $(INSTALL_DATA) *.lua $(INSTALL_LMOD)/jit
70
71ranlib:
72 cd src && cd $(INSTALL_LIB) && $(RANLIB) $(TO_LIB)
73
74none:
75 @echo "Please do"
76 @echo " make PLATFORM"
77 @echo "where PLATFORM is one of these:"
78 @echo " $(PLATS)"
79 @echo "See jitdoc/luajit_install.html for complete instructions."
80
81# make may get confused with test/ and INSTALL in a case-insensitive OS
82dummy:
83
84# echo config parameters
85echo:
86 @echo ""
87 @echo "These are the parameters currently set in src/Makefile to build LuaJIT $(JV):"
88 @echo ""
89 @cd src && $(MAKE) -s echo
90 @echo ""
91 @echo "These are the parameters currently set in Makefile to install LuaJIT $(JV):"
92 @echo ""
93 @echo "PLAT = $(PLAT)"
94 @echo "INSTALL_TOP = $(INSTALL_TOP)"
95 @echo "INSTALL_BIN = $(INSTALL_BIN)"
96 @echo "INSTALL_INC = $(INSTALL_INC)"
97 @echo "INSTALL_LIB = $(INSTALL_LIB)"
98 @echo "INSTALL_MAN = $(INSTALL_MAN)"
99 @echo "INSTALL_LMOD = $(INSTALL_LMOD)"
100 @echo "INSTALL_CMOD = $(INSTALL_CMOD)"
101 @echo "INSTALL_EXEC = $(INSTALL_EXEC)"
102 @echo "INSTALL_DATA = $(INSTALL_DATA)"
103 @echo ""
104 @echo "See also src/luaconf.h ."
105 @echo ""
106
107# echo private config parameters
108pecho:
109 @echo "V = $(V)"
110 @echo "R = $(R)"
111 @echo "JV = $(JV)"
112 @echo "TO_BIN = $(TO_BIN)"
113 @echo "TO_INC = $(TO_INC)"
114 @echo "TO_LIB = $(TO_LIB)"
115 @echo "TO_MAN = $(TO_MAN)"
116
117# echo config parameters as Lua code
118# uncomment the last sed expression if you want nil instead of empty strings
119lecho:
120 @echo "-- installation parameters for Lua $(R), LuaJIT $(JV)"
121 @echo "VERSION = '$(V)'"
122 @echo "RELEASE = '$(R)'"
123 @echo "LUAJIT_VERSION = '$(JV)'"
124 @$(MAKE) echo | grep = | sed -e 's/= /= "/' -e 's/$$/"/' #-e 's/""/nil/'
125 @echo "-- EOF"
126
127# list targets that do not create files (but not all makes understand .PHONY)
128.PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho
129
130# (end of Makefile)