You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
3.7 KiB

musl: ldadd += /usr/lib/${ARCH}-linux-musl/libc.a
musl: apply-patches milagro embed-lua lua53
CC=${gcc} AR="${ar}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src musl
@cp -v src/zenroom build/zenroom
musl-local: ldadd += /usr/local/musl/lib/libc.a
musl-local: apply-patches milagro embed-lua lua53
CC=${gcc} AR="${ar}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src musl
musl-system: gcc := gcc
musl-system: ldadd += -lm
musl-system: apply-patches milagro embed-lua lua53
CC=${gcc} AR="${ar}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src musl
bsd: cflags := -O3 ${cflags_protection} -fPIE -fPIC -DARCH_BSD
bsd: ldadd += -lm
bsd: apply-patches milagro lua53 embed-lua
CC=${gcc} AR="${ar}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src linux
@cp -v src/zenroom build/zenroom
linux: cflags := -O3 ${cflags_protection} -fPIE -fPIC
linux: apply-patches milagro lua53 embed-lua
CC=${gcc} AR="${ar}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src linux
@cp -v src/zenroom build/zenroom
android-arm android-x86 android-aarch64 java-x86_64: apply-patches milagro lua53 embed-lua
CC=${gcc} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
LD="${ld}" RANLIB="${ranlib}" AR="${ar}" \
make -C src $@
cortex-arm: ldflags += -Wl,-Map=./zenroom.map
cortex-arm: apply-patches milagro cortex-lua53 embed-lua
CC=${gcc} AR="${ar}" OBJCOPY="${objcopy}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src arm
aarch64: ldflags += -Wl,-Map=./zenroom.map
aarch64: apply-patches milagro cortex-lua53 embed-lua
CC=${gcc} AR="${ar}" OBJCOPY="${objcopy}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src arm
linux-riscv64: apply-patches milagro lua53 embed-lua
CC=${gcc} AR="${ar}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src linux
linux-debug: apply-patches milagro lua53 embed-lua
3 years ago
CC=${gcc} AR="${ar}" CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src linux
@cp -v src/zenroom build/zenroom
3 years ago
linux-profile: linux-debug
linux-c++: linux
linux-jemalloc: linux
linux-debug-jemalloc: cflags += -O1 -ggdb ${cflags_protection} -DDEBUG=1 -Wstack-usage=4096
linux-debug-jemalloc: linux
linux-clang: gcc := clang
linux-clang: linux
linux-sanitizer: gcc := clang
linux-sanitizer: cflags := -O1 -ggdb ${cflags_protection} -DDEBUG=1
linux-sanitizer: cflags += -fsanitize=address -fno-omit-frame-pointer
linux-sanitizer: linux
ASAN_OPTIONS=verbosity=1:log_threads=1 \
ASAN_SYMBOLIZER_PATH=/usr/bin/asan_symbolizer \
ASAN_OPTIONS=abort_on_error=1 \
./src/zenroom -i -d
linux-lib: cflags := -O3 ${cflags_protection} -fPIE -fPIC
linux-lib: cflags += -shared -DLIBRARY
linux-lib: apply-patches milagro lua53 embed-lua
CC=${gcc} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src linux-lib
linux-lib-debug: cflags += -shared -DLIBRARY
linux-lib-debug: apply-patches milagro lua53 embed-lua
CC=${gcc} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src linux-lib
linux-python3: apply-patches milagro lua53 embed-lua
swig -python -py3 ${pwd}/build/swig.i
${gcc} ${cflags} -c ${pwd}/build/swig_wrap.c \
-o src/zen_python.o
CC=${gcc} LD=${ld} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src python
@cp -v ${pwd}/build/zenroom.py ${pwd}/bindings/python3/zenroom/zenroom_swig.py
linux-go: apply-patches milagro lua53 embed-lua
swig -go -cgo -intgosize 32 ${pwd}/build/swig.i
${gcc} ${cflags} -c ${pwd}/build/swig_wrap.c -o src/zen_go.o
CC=${gcc} LD=${ld} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src go
cp -v ${pwd}/src/libzenroomgo.so ${pwd}/bindings/golang/zenroom/lib/