Lines 1-16
Link Here
|
1 |
--- Makefile.orig 2020-03-29 23:58:44 UTC |
1 |
--- Makefile.orig 2020-04-28 05:33:18 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -30,8 +30,7 @@ else ifeq ($(detected_OS),Windows) # Windows |
3 |
@@ -55,7 +55,7 @@ else |
4 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
4 |
else ifeq ($(detected_OS),Windows) # Windows |
5 |
CXX=clang |
5 |
LINK+= -L. -llua51 |
6 |
CXXFLAGS+= -s -Qunused-arguments -lstdc++ |
6 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
7 |
- LINK+= -ldl -lm -LLuaJIT/src -lluajit #use Nift built LuaJIT |
7 |
- LINK+= -ldl -lm -LLuaJIT/src -lluajit |
8 |
- #LINK+= -ldl -lm -L/usr/local/lib -lluajit-5.1 #use FreeBSD LuaJIT |
8 |
+ LINK+= -ldl -lm -L/usr/local/lib -lluajit-5.1 |
9 |
+ LINK+= -ldl -lm -L%%LOCALBASE%%/lib -lluajit-5.1 #use FreeBSD LuaJIT |
9 |
else # *nix |
10 |
else # *nix |
10 |
LINK+= -ldl -LLuaJIT/src -lluajit |
11 |
#use these flags for a smaller binary |
11 |
endif |
12 |
#CXXFLAGS+= -s |
12 |
@@ -73,7 +73,7 @@ endif |
13 |
@@ -51,7 +50,7 @@ endif |
|
|
14 |
|
13 |
|
15 |
### |
14 |
### |
16 |
|
15 |
|
Lines 19-35
Link Here
|
19 |
|
18 |
|
20 |
### |
19 |
### |
21 |
|
20 |
|
22 |
@@ -62,9 +61,6 @@ ifeq ($(detected_OS),Darwin) # Mac OSX |
21 |
@@ -85,8 +85,6 @@ else ifeq ($(detected_OS),Windows) # Windows |
23 |
else ifeq ($(detected_OS),Windows) # Windows |
|
|
24 |
cd LuaJIT && make |
22 |
cd LuaJIT && make |
25 |
copy LuaJIT\src\lua51.dll . |
23 |
copy LuaJIT\src\lua51.dll . |
26 |
-else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
24 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
27 |
- cd LuaJIT && gmake |
25 |
- cd LuaJIT && gmake |
28 |
- cp LuaJIT/src/libluajit.so ./ |
26 |
- cp LuaJIT/src/libluajit.so ./ |
29 |
else # *nix |
27 |
else # *nix |
30 |
cd LuaJIT && make |
28 |
cd LuaJIT && make |
31 |
endif |
29 |
cp LuaJIT/src/libluajit.so ./libluajit-5.1.so.2 |
32 |
@@ -159,7 +155,6 @@ ifeq ($(detected_OS),Windows) # Windows |
30 |
@@ -193,7 +191,6 @@ ifeq ($(detected_OS),Windows) # Windows |
33 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
31 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
34 |
mkdir -p ${BINDIR} |
32 |
mkdir -p ${BINDIR} |
35 |
chmod 755 nsm |
33 |
chmod 755 nsm |
Lines 37-65
Link Here
|
37 |
mv nift ${BINDIR} |
35 |
mv nift ${BINDIR} |
38 |
mv nsm ${BINDIR} |
36 |
mv nsm ${BINDIR} |
39 |
else # *nix |
37 |
else # *nix |
40 |
@@ -175,7 +170,6 @@ ifeq ($(detected_OS),Windows) # Windows |
38 |
@@ -211,7 +208,6 @@ ifeq ($(detected_OS),Windows) # Windows |
41 |
@echo "and 'nift.exe' from install location, typically " |
|
|
42 |
@echo "'C:\Windows\System32'" |
43 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
39 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
44 |
- rm ${LIBDIR}/libluajit-5.1.so.2 |
|
|
45 |
rm ${BINDIR}/nift |
40 |
rm ${BINDIR}/nift |
46 |
rm ${BINDIR}/nsm |
41 |
rm ${BINDIR}/nsm |
|
|
42 |
- rm ${LIBDIR}/libluajit-5.1.so.2 |
47 |
else # *nix |
43 |
else # *nix |
48 |
@@ -201,7 +195,6 @@ else ifeq ($(detected_OS),Windows) # Windows |
44 |
rm ${BINDIR}/nift |
49 |
#cd LuaJIT && make clean #this doesn't work for some reason |
45 |
rm ${BINDIR}/nsm |
|
|
46 |
@@ -234,7 +230,6 @@ else ifeq ($(detected_OS),Windows) # Windows |
47 |
del $(objects) |
50 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
48 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
51 |
rm -f $(objects) |
49 |
rm -f $(objects) |
52 |
- cd LuaJIT && gmake clean |
50 |
- cd LuaJIT && gmake clean |
53 |
else # *nix |
51 |
else # *nix |
54 |
rm -f $(objects) |
52 |
rm -f $(objects) |
55 |
cd LuaJIT && make clean |
53 |
cd LuaJIT && make clean |
56 |
@@ -215,8 +208,7 @@ else ifeq ($(detected_OS),Windows) # Windows |
54 |
@@ -248,7 +243,6 @@ else ifeq ($(detected_OS),Windows) # Windows |
57 |
del -f $(objects) nsm.exe nift.exe lua51.dll |
55 |
del $(objects) nsm.exe nift.exe lua51.dll |
58 |
#cd LuaJIT && make clean #see same line for clean |
|
|
59 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
56 |
else ifeq ($(detected_OS),FreeBSD) #FreeBSD |
60 |
- rm -f $(objects) nsm nift libluajit.so |
57 |
rm -f $(objects) nsm nift libluajit.so |
61 |
- cd LuaJIT && gmake clean |
58 |
- cd LuaJIT && gmake clean |
62 |
+ rm -f $(objects) nsm nift |
|
|
63 |
else # *nix |
59 |
else # *nix |
64 |
rm -f $(objects) nsm nift |
60 |
rm -f $(objects) nsm nift libluajit-5.1.so.2 |
65 |
cd LuaJIT && make clean |
61 |
cd LuaJIT && make clean |