1
0
Fork 0
mirror of https://github.com/tailix/mrubyvisor.git synced 2024-11-11 13:50:47 -05:00

Improve build system

This commit is contained in:
Alex Kotov 2022-11-29 00:20:42 +04:00
parent 487478553a
commit b31a62664b
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -10,10 +10,11 @@ QEMU = qemu-system-i386
ABS_REPO = $(shell pwd)
IMAGE = image.iso
ROOTFS = rootfs
DEST = dest
SRC = src
DEST = dest
IMAGE = image.iso
MRUBY_CONF = build_config.rb
ROOTFS = rootfs
SRC = src
GRUBCFG = $(ROOTFS)/boot/grub/grub.cfg
LIBKERNAUX = $(DEST)/lib/libkernaux.a
@ -49,8 +50,8 @@ $(LIBKERNAUX):
cd vendor/libkernaux && $(MAKE)
cd vendor/libkernaux && $(MAKE) install
$(LIBMRUBY): $(LIBKERNAUX)
cd vendor/mruby && $(RAKE) MRUBY_CONFIG='$(ABS_REPO)/build_config.rb' CROSS_AR='$(AR)' CROSS_CC='$(CC)' CROSS_LD='$(LD)'
$(LIBMRUBY): $(LIBKERNAUX) $(MRUBY_CONF)
cd vendor/mruby && $(RAKE) MRUBY_CONFIG='$(ABS_REPO)/$(MRUBY_CONF)' CROSS_AR='$(AR)' CROSS_CC='$(CC)' CROSS_LD='$(LD)'
mkdir -p $(DEST)/include $(DEST)/lib
cp vendor/mruby/build/$(MRUBY_NAME)/lib/libmruby.a $(DEST)/lib
cp -r vendor/mruby/include/* $(DEST)/include