Luna/Makefile

25 lines
495 B
Makefile

CC := x86_64-luna-gcc
CXX := x86_64-luna-g++
ASM := nasm
AR := x86_64-luna-ar
LD := x86_64-luna-ld
build:
tools/sync-libc.sh
@$(MAKE) -C kernel build
@$(MAKE) -C libs build
@$(MAKE) -C apps build
clean: initrd-clean
@$(MAKE) -C kernel clean
@$(MAKE) -C libs clean
@$(MAKE) -C apps clean
initrd-clean:
rm -f $(LUNA_ROOT)/initrd/boot/moon.elf $(LUNA_ROOT)/Luna.iso
rm -rf $(LUNA_ROOT)/initrd/bin
install:
@$(MAKE) -C kernel install
@$(MAKE) -C libs install
@$(MAKE) -C apps install