mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
58 lines
744 B
Makefile
58 lines
744 B
Makefile
include config.mk
|
|
|
|
export INCLUDE = $(shell pwd)/include
|
|
export KERNEL = $(shell pwd)/arch/kernel
|
|
export LIBK = $(shell pwd)/libk/libk.a
|
|
|
|
run: run-iso
|
|
|
|
all: all-kernel all-iso all-libk all-test
|
|
clean: clean-kernel clean-iso clean-libk clean-test
|
|
|
|
test: run-test
|
|
|
|
##########
|
|
# Kernel #
|
|
##########
|
|
|
|
all-kernel: all-libk
|
|
make all -C arch
|
|
|
|
clean-kernel:
|
|
make clean -C arch
|
|
|
|
#######
|
|
# ISO #
|
|
#######
|
|
|
|
run-iso: all-iso
|
|
make run -C iso
|
|
|
|
all-iso: all-kernel
|
|
make all -C iso
|
|
|
|
clean-iso:
|
|
make clean -C iso
|
|
|
|
########
|
|
# libk #
|
|
########
|
|
|
|
all-libk:
|
|
make all -C libk
|
|
|
|
clean-libk:
|
|
make clean -C libk
|
|
|
|
#########
|
|
# Tests #
|
|
#########
|
|
|
|
run-test: all-test
|
|
make run -C test
|
|
|
|
all-test: all-libk
|
|
make all -C test
|
|
|
|
clean-test:
|
|
make clean -C test
|