Luna/Makefile
apio 1a82bbb234 ports: Add a port system
The only port right now is bc, which works... kind of.
It compiles, and runs, but is really janky. At least it runs!!
2022-10-23 16:44:50 +02:00

26 lines
526 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
@tools/install-built-ports.sh