blob: df59f247ab7fe35676a5274707d1605bbb47e072 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
include ../Makefile.config
kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c
kernel.OBJS := include conf.h
include ../rules.mk
.PHONY: test valgrind
test: tst/test_taskqueue tst/test_roundrobin
$(foreach f,$^,./$f;)
valgrind: tst/test_taskqueue tst/test_roundrobin
$(foreach f,$^,valgrind --leak-check=full ./$f;)
conf.h: conf.h.in
@echo ' GEN $@'
@cp conf.h.in conf.h
@sed -i 's/@VERSION@/$(shell git describe)/' conf.h
@sed -i 's/@CC@/$(shell ${CC} --version | head -n1)/' conf.h
include:
mkdir -p $@
ln -sTf ../../grub $@/grub
ln -sTf ../../${ARCH} $@/arch
ln -sTf ../../${ARCH}/sys $@/sys
ln -sTf ../../devices $@/devices
ln -sTf ../../lib $@/lib
|