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:
parent
487478553a
commit
b31a62664b
1 changed files with 7 additions and 6 deletions
9
Makefile
9
Makefile
|
@ -10,9 +10,10 @@ QEMU = qemu-system-i386
|
|||
|
||||
ABS_REPO = $(shell pwd)
|
||||
|
||||
IMAGE = image.iso
|
||||
ROOTFS = rootfs
|
||||
DEST = dest
|
||||
IMAGE = image.iso
|
||||
MRUBY_CONF = build_config.rb
|
||||
ROOTFS = rootfs
|
||||
SRC = src
|
||||
|
||||
GRUBCFG = $(ROOTFS)/boot/grub/grub.cfg
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue