From c1c6b705eb817bc30f189f07c05964d7ceda0c4c Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 3 Aug 2013 21:46:21 +0800 Subject: [PATCH] Added libspiderscript --- .gitmodules | 3 +++ Externals/config.mk | 20 ++++++++++++++++++++ Externals/core.mk | 17 +---------------- Externals/libspiderscript/Makefile | 21 +++++++++++++++++++++ Externals/libspiderscript/source | 1 + 5 files changed, 46 insertions(+), 16 deletions(-) create mode 100644 .gitmodules create mode 100644 Externals/config.mk create mode 100644 Externals/libspiderscript/Makefile create mode 160000 Externals/libspiderscript/source diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..e3a5cbfa --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Externals/libspiderscript/source"] + path = Externals/libspiderscript/source + url = git://git.mutabah.net/spiderscript.git diff --git a/Externals/config.mk b/Externals/config.mk new file mode 100644 index 00000000..f61fb946 --- /dev/null +++ b/Externals/config.mk @@ -0,0 +1,20 @@ +# +# +# +-include ../../Makefile.cfg + +ifeq ($(ARCH),x86) + BFD := i586 +else ifeq ($(ARCH),x86_64) + BFD := x86_64 +else + $(error No BFD translation for $(ARCH) in Externals/core.mk) +endif + +#PREFIX=$(ACESSDIR)/Externals/Output +#EPREFIX=$(ACESSDIR)/Externals/Output/$(BFD) +PREFIX=$(ACESSDIR)/Externals/Output/$(ARCH) +EPREFIX=$(PREFIX) +SYSROOT=$(ACESSDIR)/Externals/Output/sysroot-$(BFD) +HOST=$(BFD)-acess_proxy-elf + diff --git a/Externals/core.mk b/Externals/core.mk index 4e39cf57..56d40506 100644 --- a/Externals/core.mk +++ b/Externals/core.mk @@ -5,22 +5,7 @@ # core.mk # - Makefile code used by all externals --include ../../Makefile.cfg - -ifeq ($(ARCH),x86) - BFD := i586 -else ifeq ($(ARCH),x86_64) - BFD := x86_64 -else - $(error No BFD translation for $(ARCH) in Externals/core.mk) -endif - -#PREFIX=$(ACESSDIR)/Externals/Output -#EPREFIX=$(ACESSDIR)/Externals/Output/$(BFD) -PREFIX=$(ACESSDIR)/Externals/Output/$(ARCH) -EPREFIX=$(PREFIX) -SYSROOT=$(ACESSDIR)/Externals/Output/sysroot-$(BFD) -HOST=$(BFD)-acess_proxy-elf +include $(dir $(lastword $(MAKEFILE_LIST)))/config.mk # # DEPS : Dependencies for this program/library diff --git a/Externals/libspiderscript/Makefile b/Externals/libspiderscript/Makefile new file mode 100644 index 00000000..940cf35d --- /dev/null +++ b/Externals/libspiderscript/Makefile @@ -0,0 +1,21 @@ + +ARCHIVE=unused +-include ../config.mk + +CC = $(HOST)-gcc + +all: source/libspiderscript.so + +clean: + CC=$(CC) make -C source/src clean + +source/: + git submodule update source/ +source/libspiderscript.so: source/ + CC=$(CC) make -C source/src + +install: source/libspiderscript.so + cp source/libspiderscript.so $(EPREFIX)/lib + cp source/spiderscript.h $(PREFIX)/include + + diff --git a/Externals/libspiderscript/source b/Externals/libspiderscript/source new file mode 160000 index 00000000..9f2d7faf --- /dev/null +++ b/Externals/libspiderscript/source @@ -0,0 +1 @@ +Subproject commit 9f2d7faf34c16ceaee2f1bffe3d5558c41382523 -- 2.20.1