blob: e683c86a58b95e5c531248b1d0a29221807f73fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
TARGET?=virt
CROSS_COMPILE?=riscv64-unknown-elf-
GDB_PORT?=1234
CFLAGS=-nostdlib -ffreestanding -mcmodel=medany -nostdinc -I${.CURDIR}/include
.export
sys: ${SRC} lib/build/libc.a
@echo "building kernel"
(${MAKE} -C sys -e)
lib/build/libc.a:
@echo "building libc"
(${MAKE} -C lib -e)
debug: sys
(${MAKE} -C sys -e debug)
clean:
(${MAKE} -C sys -e clean)
(${MAKE} -C lib -e clean)
.PHONY: sys debug all clean
|