From 3c1be8639a3074f6f98e344116884852e98c9ce6 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 25 Dec 2020 17:55:47 +0100 Subject: [PATCH 1/7] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a3891ad --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Xuan Sang LE + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 24a681a9626f6a8da7499589e7a2f6df97218ede Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 25 Dec 2020 18:34:38 +0100 Subject: [PATCH 2/7] Update Makefile.am --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index ea01326..a625862 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,6 +24,6 @@ SUBDIRS = . lib EXTRA_DIST = README.md APIs install-data-local: - mkdir -p $(prefix)/lib/lua - cp -v APIs/* $(prefix)/lib/lua - cp -v lib/core/lua-5.3.4/core.so $(prefix)/lib/lua \ No newline at end of file + -mkdir -p $(prefix)/lib/lua + -cp -v APIs/* $(prefix)/lib/lua + -cp -v lib/core/lua-5.3.4/core.so $(prefix)/lib/lua From d9adec88697233465277a0ce20381a84d71509da Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 25 Dec 2020 18:52:17 +0100 Subject: [PATCH 3/7] Update Makefile.am --- lib/ann/fann/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ann/fann/Makefile.am b/lib/ann/fann/Makefile.am index a9e9717..1c39228 100644 --- a/lib/ann/fann/Makefile.am +++ b/lib/ann/fann/Makefile.am @@ -1,6 +1,6 @@ -all: +all: clean-local -mkdir build cd build && cmake .. && make clean-local: - -rm -rf build \ No newline at end of file + -rm -rf build From 3f33fa217fd73c456cec0e5d7687101df6493324 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 25 Dec 2020 18:56:55 +0100 Subject: [PATCH 4/7] Update Makefile --- lib/core/lua-5.3.4/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/lua-5.3.4/Makefile b/lib/core/lua-5.3.4/Makefile index 4935306..676f93d 100644 --- a/lib/core/lua-5.3.4/Makefile +++ b/lib/core/lua-5.3.4/Makefile @@ -6,7 +6,7 @@ # Your platform. See PLATS for possible values. PLAT= none -CC= gcc -std=gnu99 +CC?= gcc -std=gnu99 CFLAGS= -O2 -g -Wall -Wextra -DLUA_COMPAT_5_2 -fPIC $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) From c6f2a05164267afaa6f7f81d0fbe463c4fea3690 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 25 Dec 2020 18:59:43 +0100 Subject: [PATCH 5/7] Update Makefile --- lib/core/lua-5.3.4/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/lua-5.3.4/Makefile b/lib/core/lua-5.3.4/Makefile index 676f93d..3244df1 100644 --- a/lib/core/lua-5.3.4/Makefile +++ b/lib/core/lua-5.3.4/Makefile @@ -11,8 +11,8 @@ CFLAGS= -O2 -g -Wall -Wextra -DLUA_COMPAT_5_2 -fPIC $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) -AR= ar rcu -RANLIB= ranlib +AR?= ar rcu +RANLIB?= ranlib RM= rm -f SYSCFLAGS= From 8d7392bc71b49b75559c517d7a6b564e9c997d51 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 25 Dec 2020 19:06:30 +0100 Subject: [PATCH 6/7] Update Makefile --- lib/core/lua-5.3.4/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/core/lua-5.3.4/Makefile b/lib/core/lua-5.3.4/Makefile index 3244df1..29e9b0e 100644 --- a/lib/core/lua-5.3.4/Makefile +++ b/lib/core/lua-5.3.4/Makefile @@ -11,7 +11,8 @@ CFLAGS= -O2 -g -Wall -Wextra -DLUA_COMPAT_5_2 -fPIC $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) -AR?= ar rcu +AR?= ar +LAR= $(AR) rcu RANLIB?= ranlib RM= rm -f @@ -56,7 +57,7 @@ o: $(ALL_O) a: $(ALL_A) $(LUA_A): $(BASE_O) - $(AR) $@ $(BASE_O) + $(LAR) $@ $(BASE_O) $(RANLIB) $@ $(LUA_SO): $(BASE_O) @@ -84,7 +85,7 @@ echo: @echo "CFLAGS= $(CFLAGS)" @echo "LDFLAGS= $(SYSLDFLAGS)" @echo "LIBS= $(LIBS)" - @echo "AR= $(AR)" + @echo "AR= $(LAR)" @echo "RANLIB= $(RANLIB)" @echo "RM= $(RM)" From f387ebdfafcd877ba17a9f7757fc1d3b895685bd Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 25 Dec 2020 19:07:56 +0100 Subject: [PATCH 7/7] Update Makefile --- lib/core/lua-5.3.4/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/lua-5.3.4/Makefile b/lib/core/lua-5.3.4/Makefile index 29e9b0e..71d0cd4 100644 --- a/lib/core/lua-5.3.4/Makefile +++ b/lib/core/lua-5.3.4/Makefile @@ -61,7 +61,7 @@ $(LUA_A): $(BASE_O) $(RANLIB) $@ $(LUA_SO): $(BASE_O) - gcc -shared $(BASE_O) -o $@ -ldl -lm + $(CC) -shared $(BASE_O) -o $@ -ldl -lm $(LUA_T): $(LUA_O) $(LUA_A) $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)