mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Uses NDK as C crosscompiler and ADB to run code on the target device. Uses both :linux and :android features (android is almost a linux). It also reserves a folder android-libs/ for putting precompiled libraries to link agains (for example zstd for core compression). See doc/internals-notes/Android-build.txt for more details
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# -*- makefile -*- for the C-level run-time support for SBCL
|
|
|
|
# This software is part of the SBCL system. See the README file for
|
|
# more information.
|
|
#
|
|
# This software is derived from the CMU CL system, which was
|
|
# written at Carnegie Mellon University and released into the
|
|
# public domain. The software is in the public domain and is
|
|
# provided with absolutely no warranty. See the COPYING and CREDITS
|
|
# files for more information.
|
|
|
|
-include ../../output/ndk-config
|
|
|
|
CC=${TOOLCHAIN}/bin/${TARGET_TAG}${ANDROID_API}-clang
|
|
LD=${TOOLCHAIN}/${TARGET_TAG}/bin/ld
|
|
|
|
CFLAGS += -march=armv8
|
|
|
|
# NDK implements pthread in libc so there is no need to add it to OS_LIBS
|
|
|
|
ASSEM_SRC = arm64-assem.S
|
|
ARCH_SRC = arm64-arch.c
|
|
|
|
OS_SRC = linux-os.c linux-mman.c arm64-linux-os.c android-os.c arm64-android-os.c
|
|
OS_LIBS = -ldl
|
|
|
|
CFLAGS += -std=gnu99 -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer
|
|
LINKFLAGS += -Wl,--export-dynamic
|
|
SOFLAGS += -Wl,-soname,libsbcl.so
|
|
|
|
ifdef LISP_FEATURE_GENCGC
|
|
GC_SRC = fullcgc.c gencgc.c traceroot.c
|
|
endif
|
|
|
|
ifdef LISP_FEATURE_SB_CORE_COMPRESSION
|
|
OS_LIBS += -lzstd
|
|
CFLAGS += -I../../android-libs
|
|
DEPEND_FLAGS += -I../../android-libs
|
|
LINKFLAGS += -L../../android-libs
|
|
SOFLAGS += -L../../android-libs
|
|
endif
|
|
|
|
ifdef LISP_FEATURE_LARGEFILE
|
|
CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
|
endif
|
|
|
|
ifdef LISP_FEATURE_SB_LINKABLE_RUNTIME
|
|
LIBSBCL = sbcl.o
|
|
USE_LIBSBCL = sbcl.o
|
|
endif
|