1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00
kernel/Makefile
2017-11-04 06:09:14 +00:00

31 lines
533 B
Makefile

export CCPREFIX = i686-elf-
export AR = $(CCPREFIX)ar
export AS = $(CCPREFIX)as
export CC = $(CCPREFIX)gcc
run: run-iso
all: all-kernel all-iso all-libk
clean: clean-kernel clean-iso clean-libk
all-kernel: all-libk
make all -C arch LIBK=$(shell pwd)/libk/libk.a
clean-kernel:
make clean -C arch
run-iso: all-kernel
make run -C iso K=$(shell pwd)/arch/kernel
all-iso: all-kernel
make all -C iso K=$(shell pwd)/arch/kernel
clean-iso:
make clean -C iso
all-libk:
make all -C libk
clean-libk:
make clean -C libk