meta: That may need to be defined in the individual target Makefiles...
This commit is contained in:
parent
6c38332c5b
commit
af77c89c81
5
Makefile
5
Makefile
@ -91,11 +91,6 @@ $(BASE)/lib/kuroko/%.krk: kuroko/modules/%.krk | dirs
|
||||
mkdir -p $(dir $@)
|
||||
cp $< $@
|
||||
|
||||
BUILD_KRK=$(TOOLCHAIN)/local/bin/kuroko
|
||||
$(TOOLCHAIN)/local/bin/kuroko: kuroko/src/*.c
|
||||
mkdir -p $(TOOLCHAIN)/local/bin
|
||||
cc -Ikuroko/src -DNO_RLINE -DSTATIC_ONLY -DKRK_DISABLE_THREADS -o "${TOOLCHAIN}/local/bin/kuroko" kuroko/src/*.c
|
||||
|
||||
$(BASE)/lib/libkuroko.so: $(KRK_SRC) | $(LC)
|
||||
$(CC) -O2 -shared -fPIC -Ikuroko/src -o $@ $(filter-out kuroko/src/kuroko.c,$(KRK_SRC))
|
||||
|
||||
|
@ -44,3 +44,8 @@ run: system
|
||||
debug: system
|
||||
${QEMU} ${EMU_ARGS} -kernel bootstub -append "root=/dev/ram0 migrate start=live-session vid=auto" ${EMU_RAMDISK} ${EMU_KERNEL} -d int 2>&1
|
||||
|
||||
BUILD_KRK=$(TOOLCHAIN)/local/bin/kuroko
|
||||
$(TOOLCHAIN)/local/bin/kuroko: kuroko/src/*.c
|
||||
mkdir -p $(TOOLCHAIN)/local/bin
|
||||
cc -Ikuroko/src -DNO_RLINE -DSTATIC_ONLY -DKRK_DISABLE_THREADS -o "${TOOLCHAIN}/local/bin/kuroko" kuroko/src/*.c
|
||||
|
||||
|
@ -101,6 +101,11 @@ fatbase/efi/boot/bootx64.efi: boot/efi64.so
|
||||
mkdir -p fatbase/efi/boot
|
||||
objcopy ${EFI_SECTIONS} --target=efi-app-x86_64 $< $@
|
||||
|
||||
BUILD_KRK=$(TOOLCHAIN)/local/bin/kuroko
|
||||
$(TOOLCHAIN)/local/bin/kuroko: kuroko/src/*.c
|
||||
mkdir -p $(TOOLCHAIN)/local/bin
|
||||
cc -Ikuroko/src -DNO_RLINE -DSTATIC_ONLY -DKRK_DISABLE_THREADS -o "${TOOLCHAIN}/local/bin/kuroko" kuroko/src/*.c
|
||||
|
||||
image.iso: cdrom/fat.img cdrom/boot.sys boot/mbr.S util/update-extents.krk | $(BUILD_KRK)
|
||||
xorriso -as mkisofs -R -J -c bootcat \
|
||||
-b boot.sys -no-emul-boot -boot-load-size full \
|
||||
|
Loading…
Reference in New Issue
Block a user